How to format code in Visual Studio Code on Windows

后端 未结 6 1335
臣服心动
臣服心动 2021-01-03 18:38

How can I format code in Visual Studio Code in the last update on Windows.

I tried Ctrl+ K, Ctrl + D doe

6条回答
  •  难免孤独
    2021-01-03 19:04

    You can also select the code you want to format and right click, find the format code menu item and it should have the keyboard command listed next to it.

    By default it should be Shift + Alt/Option + F.

提交回复
热议问题