如何在Visual Studio中切换自动换行? [英] How can I toggle word wrap in Visual Studio?

查看:353
本文介绍了如何在Visual Studio中切换自动换行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio .NET是否可以打开和关闭自动换行?

Does Visual Studio .NET have a way to toggle word-wrap on and off?

我已经习惯了Eclipse中的此功能,该功能使您可以右键单击并打开和关闭自动换行,这样一来,当长行延伸到右侧时,无需将底部滚动条向右移动并留下来阅读您的代码/html:

I am used to this feature in Eclipse which allows you to right click and toggle word wrap on and off so that when you have long lines that extend out to the right, you don't have to move the bottom scroll bar right and left to read your code/html: http://web.archive.org/web/20131027224437/http://ahtik.com:80/blog/2006/06/18/first-alpha-of-eclipse-word-wrap-released/

推荐答案

按照 查看文档时:编辑/高级/自动换行( Ctrl + E Ctrl + W )

When viewing a document: Edit / Advanced / Word Wrap (Ctrl+E, Ctrl+W)

常规设置:工具/选项/文本编辑器/所有语言/自动换行

General settings: Tools / Options / Text Editor / All Languages / Word wrap

或在快速启动"框中搜索自动换行".

Or search for 'word wrap' in the Quick Launch box.

已知问题:

如果您熟悉Notepad ++,Sublime Text或Visual Studio Code中的自动换行,请注意以下问题,其中Visual Studio的行为与其他编辑器不同:

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:

  1. 三次单击不会选择整行
  2. 剪切命令不会删除整行
  1. Triple click doesn't select whole line
  2. Cut command doesn't delete whole line
  3. Pressing End key twice does not move cursor to end of line

不幸的是,这些错误已被降低优先级"关闭. 如果您希望修复这些错误,请对功能请求 使用自动换行解决已知问题 .

Unfortunately these bugs have been closed "lower priority". If you'd like these bugs fixed, please vote for the feature request Fix known issues with word wrap.

这篇关于如何在Visual Studio中切换自动换行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆