Visual Studio Code Move Line Up



Visual studio code online editor-->

I recently started using Visual Studio Code at work. We have a size limit on our profile and VS Code’s extensions folder chews up space very quickly. So I had to work out how to move the extensions folder from the default location to stop it from counting against my quota. Clearly Emmet abbreviation is a very powerful tool that makes coding very easy in Visual Studio code. Moving a line up/down: We can easily move a line up and down in the Visual Studio Code. This helps us reposition the content with ease.

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

Visual Studio Code Move Line Up

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

10 Reasons Why WebStorm Is Better Than Visual Studio Code. VS Code will move a line of code up or down with Alt + Up/Down. So I can quickly move functions and classes up as a single block.

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.

Visual studio code online editor

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 Move Line Up

See also





Comments are closed.