添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
有胆有识的作业本  ·  Vue中 ...·  1 年前    · 

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge

Applies to: yes Visual Studio no Visual Studio for Mac no Visual Studio Code

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.

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

To set word wrap preferences

  • On the Visual Studio menu bar, select Tools > Options .

  • Select Text Editor > All Languages > General to set this option globally.

    — or —

    Select Text Editor , select the folder that matches the programming language you're using, and then select the General folder. For example, select Text Editor > C# > General .

  • 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.

    The Show visual glyphs for Word Wrap option displays a return-arrow indicator where a long line wraps onto a second line. These reminder arrows are not added to your code; they are for display purposes only.

    Known issues

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

  • Triple click doesn't select whole line
  • Pressing End key twice doesn't move cursor to end of line
  • See also

    Features of the code editor