本文翻译自:How can I toggle word wrap in Visual Studio?

Does Visual Studio .NET have a way to toggle word-wrap on and off? Visual Studio .NET是否有办法打开和关闭自动换行?

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://ahtik.com/blog/2006/06/18/first-alpha-of-eclipse-word-wrap-released/ 我习惯于在Eclipse中使用这个功能,它允许你右键单击并切换自动换行,这样当你有一条向右延伸的长行时,你不必将左下滚动条左右移动到阅读您的代码/ html: http : //ahtik.com/blog/2006/06/18/first-alpha-of-eclipse-word-wrap-released/


#1楼

参考:https://stackoom.com/question/1K4T/如何在Visual-Studio中切换自动换行


#2楼

  1. Open the output window. 打开输出窗口。

  2. Look for the little icon on the very right-hand side of the toolbar that starts with the text "Show output from:" in it. 查找工具栏右侧的小图标,该图标以文本“显示输出:”开头。 It looks like a small window with a carriage return icon. 它看起来像一个带有回车图标的小窗口。 When you hover over it Visual Studio should display "Toggle Word Wrap" near your mouse pointer. 当您将鼠标悬停在它上面时,Visual Studio应在鼠标指针附近显示“Toggle Word Wrap”。

  3. Click that icon. 单击该图标。

You now have learned something that was so painfully obvious I feel embarrassed for not knowing this long ago and thus have chosen to pay my dues and share my answer with others so they don't suffer the same agony I have. 你现在已经学到了一些非常痛苦的东西,我很久以前就不知道这件事而感到尴尬,因此我选择支付我的会费并与其他人分享我的答案,这样他们就不会遭受同样的痛苦。

Seriously, this is really useful for those with small screens. 说真的,这对于小屏幕的人来说非常有用。 I have a small Lilliput USB monitor that is good for small tool windows, Skype IM, etc. It works great for putting the output window on, except that it sucks having to always sideways scroll. 我有一个小型的Lilliput USB显示器,适用于小工具窗口,Skype IM等。它非常适合放置输出窗口,除了它总是侧向滚动。 After just putting up with sideways scroll for months I finally decided to see if I could make it word wrap. 在忍受横向滚动几个月之后,我终于决定看看我是否可以将它换成自动换行。 The answer was so easy but the amount of time/effort it saves is tremendous. 答案很简单,但节省的时间/精力是巨大的。


#3楼

As of Visual Studio 2013, the word wrap feature is finally usable—it respects indentation. 从Visual Studio 2013开始,自动换行功能最终可用 - 它支持缩进。 There's still a couple of issues (line highlighting, selection), but it's worth using. 还有一些问题(线条突出显示,选择),但它值得使用。 Here's how 这是如何做


#4楼

使用菜单编辑高级 →Visual Studio 2003中的Word Wrap


#5楼

Following https://docs.microsoft.com/en-gb/visualstudio/ide/reference/how-to-manage-word-wrap-in-the-editor 关注https://docs.microsoft.com/en-gb/visualstudio/ide/reference/how-to-manage-word-wrap-in-the-editor

When viewing a document : Edit / Advanced / Word Wrap ( Ctrl + E , Ctrl + W ) 查看文档时 :编辑/高级/自动换行( Ctrl + E , Ctrl + W )

General settings : Tools / Options / Text Editor / All Languages / Word wrap 常规设置 :工具/选项/文本编辑器/所有语言/自动换行

Or search for 'word wrap' in the Quick Launch box. 或者在“快速启动”框中搜索“自动换行”。


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

  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 按End键两次不会将光标移动到行尾

If you'd like these fixed, please vote on UserVoice. 如果你想修复这些, 请在UserVoice上投票 。


#6楼

在Visual Studio 2008中,它是Ctrl + E + W.

如何在Visual Studio中切换自动换行?相关推荐

  1. [译]如何在visual studio中调试Javascript

    本文翻译youtube上的up主kudvenkat的javascript tutorial播放单 源地址在此: https://www.youtube.com/watch?v=PMsVM7rjupU& ...

  2. 如何在Visual Studio中安装.net6.0 或者 将在Visual Studio中将.net 5.0更新为6.0

    将在Visual Studio中将.net 5.0更新为6.0? 1.如何在Visual Studio中安装.net6.0 2.要将 visual studio 中的 .net 5.0 更新到 .ne ...

  3. 如何在Visual Studio中“添加现有项”整个目录结构?

    我有一个独立于任何C#项目的独立文件集,它们位于复杂的嵌套目录结构中. 我想以这种格式将它们添加到我正在处理的ASP.NET Web应用程序中的不同目录中; 同时保留相同的结构. 所以,我将文件夹复制 ...

  4. 如何在Visual Studio中直接使用示例代码浏览器搜索下载和管理代码示例

    今天微软一站式示例代码库团队发布了示例代码浏览器的Visual Studio 扩展.有了它,开发人员就可以在Visual Studio 2010里直接通过Alt+F1快捷键搜索示例代码,并方便地对示例 ...

  5. 如何在Visual Studio中自动格式化代码?

    我知道Visual Studio可以自动格式化以使我的方法和循环正确缩进,但是我找不到该设置. #1楼 对于Visual Studio 2010/2013/2015/2017 设置文档格式( Ctrl ...

  6. 1.2 如何在visual studio 中建立C#程序

    这一节简单介绍一下怎么在visual studio 2015中建立第一个C#程序,我使用的是2015版的visual studio,不同版本可能有一些差异,不过大体上是相同的,这些信息仅供新手参考,大 ...

  7. 如何在Visual Studio中开发自己的代码生成器插件

     Visual Studio是美国微软公司开发的一个基本完整的开发工具集,它包括了整个软件生命周期中所需要的大部分工具,如UML工具.代码管控工具.集成开发环境(IDE)等等,且所写的目标代码适用于微 ...

  8. vs2010 c语言 如何编译器,如何在Visual Studio中选择C++和C#的编译器版本

    满意答案 ljr384940 2016.12.02 采纳率:54%    等级:11 已帮助:4334人 Visual Studio的编译引擎是 MSBuild ,它提供了一套项目文件( .cspro ...

  9. 如何在Visual Studio中调整代码字体的大小和颜色

    1. 找到并点击[设置]按钮 2. 点击[选项] 3. 在[环境]中找到[字体和颜色],然后就可以自己调整了. 

最新文章

  1. 让人“眼前一亮、不明觉厉”的互联网技术PPT
  2. ls 中一些你不知道的事
  3. 浅谈Generator和Promise原理及实现
  4. 文巾解题 733. 图像渲染
  5. Hibernate 入门----第一个Hibernate应用程序
  6. [转]Unity3D新手引导开发手记
  7. 基于python实现遗传算法
  8. 货拉拉回应寻求5亿美元融资传言:持续关注资本市场 无具体上市时间表
  9. 快速构建express后端模版从qiya-cli开始
  10. 豆瓣Top250:Python爬虫+数据可视化
  11. 一款性价比远超visio的画图小工具-Dia Diagram Editor(开源-跨平台)
  12. 第十节、grep、find、sed和awk
  13. c语言的fprintf函数的用法,fprintf 和fscanf 函数
  14. 务器性能变慢 c盘temp文件夹存在大量sess开头文件的问题原因
  15. python语法报错_1、Python语法及报错总结 - 随笔分类 - 走路带风的帅界扛把子 - 博客园...
  16. B Bitwise Exclusive-OR Sequence
  17. ubuntu appimage文件怎么安装_iOS 13描述文件怎么下载?iOS 13描述文件安装注意事项...
  18. 阿里云短信认证实现过程
  19. mysql8.0 报错2059_mysql8.0连接报2059错误
  20. 通过支付宝服务中断事件看系统可靠性和YunOS的可靠性

热门文章

  1. 【Java基础】3、Java 位运算(移位、位与、或、异或、非)
  2. 简析面向对象中的继承,原型链,闭包之继承
  3. hdu1711(kmp纯模板)
  4. 在redis上实现分布式锁
  5. CentOS 7 怎样自动连接网络
  6. transform 动画效果
  7. Java突击学习 Day1
  8. php删除数组中相同的元素,只保留一个相同元素
  9. 消格子时一个很深的bug的修复纪录
  10. Zabbix主机处于check_ping_icmpping状态问题解决