How can I make Visual Studio wrap lines at 80 char

2019-01-16 09:49发布

Is there any way to make Visual Studio word-wrap at 80 characters? I'm using VS2008.

This post is loosely related.

9条回答
闹够了就滚
2楼-- · 2019-01-16 10:01

Adds vertical column guides to the Visual Studio text editor. This version is for Visual Studio 2012, Visual Studio 2013 or Visual Studio 2015.

See the plugin.

查看更多
老娘就宠你
3楼-- · 2019-01-16 10:03

I don't think you can make VS wrap at 80 columns (I'd find that terribly annoying) but you can insert a visual guideline at 80 columns so you know when is a good time to insert a newline.

Details on inserting a guideline at 80 characters for 3 different versions of visual studio.

查看更多
Luminary・发光体
4楼-- · 2019-01-16 10:03

I stumbled upon this question when was actually searching for an answer to this one (how to add a visual line/guideline at char limit). So I would like to leave a ref to it here for anyone like myself.

查看更多
在下西门庆
5楼-- · 2019-01-16 10:03

If the problem is simply that you want to know when you pass 80 characters for a single line, which is a common coding guideline limit, you can use a different approach: Editor Guidelines.

查看更多
放荡不羁爱自由
6楼-- · 2019-01-16 10:12

Tools >> Options >> Text Editor >> All Languages >> General >> Select Word Wrap.

I dont know if you can select a specific number of columns?

查看更多
Ridiculous、
7楼-- · 2019-01-16 10:21

You can also use

Ctrl+E, Ctrl+W

keyboard shortcut to toggle wrap lines on and off.

查看更多
登录 后发表回答