开发者

VS2010 formatting hotkey?

开发者 https://www.devze.com 2023-04-11 17:29 出处:网络
Is there a hot key to force 开发者_如何学CVS to format the current line/block in C#? (Similar to what happens when you add a semicolon to the end of a line or add a closing brace)You can see the short

Is there a hot key to force 开发者_如何学CVS to format the current line/block in C#? (Similar to what happens when you add a semicolon to the end of a line or add a closing brace)


You can see the shortcuts (they are dependent on your settings) in the Edit/Advanced menu, where you have Format Document and Format Selection.


Place the cursor on one brace, then press Ctrl+Shift+{, then Ctrl+E, F.

You can also format the entire document by pressing Ctrl+E, D.


There are:

Ctrl + K + D - it formats the whole document.

Ctrl + K + f - it formats the current selection.

These also appear under the Edit -> Advanced menu.

See this document on MSDN, these appear under Edit.FormatDocument and Edit.FormatSelection.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号