Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make word wrap respect indentation in Visual Studio?

Visual Studio has a word wrap feature, but frustratingly it ignores line indents, making the text hard to read. Other text editors (Notepad++, Sublime Text) simulate the indentation of wrapped lines, making code easier to read

How can I make Visual Studio 2012 wrap lines intelligently? Smartly?

See in Notepad++, 'of beer' is wrapped appearing in line with Console

notepad++

Where as in Visual Studio, 'bottles of beer' juts out into the indentation, making the code shape hard to read.

vs

like image 694
Colonel Panic Avatar asked Sep 07 '12 19:09

Colonel Panic


1 Answers

Good news: In Visual Studio 2013, word wrap properly respects indents!

However there's a number of remaining issues with it (eg. around the Home/End keys). Please vote at https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/5574507-fix-behaviour-of-home-end-keys-when-word-wrap-is-e


Alas, it's not possible. Bug to the Visual Studio developers at http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3285423-wrap-lines-intelligently-simulating-indents- . Please vote for it!

like image 177
Colonel Panic Avatar answered Oct 16 '22 01:10

Colonel Panic