How do you change the formatting options in Visual Studio Code?

后端 未结 8 1466
后悔当初
后悔当初 2020-12-07 19:37

I know you can Format Code using Ctrl+F / Cmd+F in Visual Studio Code but how do you change the formatting options for each langu

8条回答
  •  时光取名叫无心
    2020-12-07 20:22

    Same thing happened to me just now. I set prettier as the Default Formatter in Settings and it started working again. My Default Formatter was null.

    To set VSCODE Default Formatter

    File -> Preferences -> Settings (for Windows) Code -> Preferences -> Settings (for Mac)

    Search for "Default Formatter". In the dropdown, prettier will show as esbenp.prettier-vscode.

提交回复
热议问题