Is there a format code shortcut for Visual Studio?

前端 未结 9 820
梦谈多话
梦谈多话 2020-11-30 15:45

In Eclipse there is a shortcut, Ctrl+Shift+F, that re-indents code and fixes comments and blank lines. Is there an equivalent for Visual Stu

9条回答
  •  余生分开走
    2020-11-30 16:28

    To align the text in the proper format -

    • Ctrl + K + D for front end pages like .aspx or .cshtml

    • Ctrl + K + F for a .cs page

    But observe to press all buttons in sequence...

提交回复
热议问题