Visual Studio formatting tips

Heitor Helmer Herzog
1 min readDec 30, 2017

--

To indent (format) the current file press CTRL + K, CTRL + D
To format only one part, select part of code and press CTRL + K, CTRL + F
To remove the white spaces from the file between the lines, press Ctrl + Shift + H, select replace in files, check use regular expression and paste into the “Find what”

^ (? ([^ \ R \ n]) \ r? $ \ r? \ n

And in “Replace with”, leave it blank.
If you want only the current file to change, select Look in: Current Document.

--

--

Heitor Helmer Herzog
Heitor Helmer Herzog

Written by Heitor Helmer Herzog

Software developer, In love with games and the industry. Let’s code! About me: www.linkedin.com/in/heitorhherzog

No responses yet