Indentation shortcuts in Visual Studio

后端 未结 8 2136
不知归路
不知归路 2021-01-29 18:16

I\'m new to Visual Studio 2010 and C#. How can I indent the selected text to left/right by using shortcuts?

\"enter

8条回答
  •  抹茶落季
    2021-01-29 18:56

    Visual studio’s smart indenting does automatically indenting, but we can select a block or all the code for indentation.

    1. Select all the code: Ctrl+a

    2. Use either of the two ways to indentation the code:

      • Shift+Tab,

      • Ctrl+k+f.

提交回复
热议问题