Visual Studio Code Text Editor



Basic Editing Visual Studio Code is an editor first and foremost, and includes the features you need for highly productive source code editing. This topic takes you through the basics of the editor and helps you get moving with your code. To display these options, choose Options from the Tools menu, expand the Text Editor node, and select File Extension. When you select an option 'with Encoding,' a dialog will be displayed whenever you open a document of that type that allows you to select an encoding scheme for that document. Text Power Tools is an all-in-one text manipulation extension for VS Code inspired by TextFX for Notepad and Filter Lines and Text Pastry for Sublime Text. All commands supports multiple selections where it is applicable, and many of them can target new documents, so the original source remains unchanged.

-->

You can set and clear the Word wrap option. When this option is set, the portion of a long line that extends beyond the current width of the Code Editor window is displayed on the next line. When this option is cleared, for example, to facilitate the use of line numbering, you can scroll to the right to see the ends of long lines.

Note

Download visual studio code text editor

This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see Source editor: Word wrap.

To set word wrap preferences

  1. On the Tools menu, select Options.

  2. In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally.

    — or —

    Choose the General options in the subfolder for the language in which you are programming.

  3. Under Settings, select or clear the Word wrap option.

    When the Word wrap option is selected, the Show visual glyphs for word wrap option is enabled.

  4. Select the Show visual glyphs for Word Wrap option if you prefer to display a return-arrow indicator where a long line wraps onto a second line. Clear this option if you prefer not to display indicator arrows.

    Note

    These reminder arrows are not added to your code; they are for display purposes only.

Download Vs Code For Windows 10

Known issues

If you're familiar with word wrap in Notepad++, Sublime Text, or Visual Studio Code, be aware of the following issues where Visual Studio behaves differently to other editors:

Visual Studio Code Text Editor Download

See also