VSCode
Software Reference Editor: VSCode
快捷鍵
| Function |
Mac |
Window |
| Open new window |
Command(⌘)+ Shift(⇧)+ N |
- |
格式
| Function |
Mac |
Window |
| Format HTML |
Shift(⇧)+ Option(⌥) + F |
Shift + Alt + F |
設定
Open setting.json
Command
Command(⌘) + Shift(⇧) + P or Ctrl + Shift + P
- Type
open settings
- Choose
Open User Settings (JSON)

GUI
- Click the
open setting button on the setting page

setting.json file path
| Platform |
Path |
| Windows |
%APPDATA%\Code\User\settings.json |
| Mac |
$HOME/Library/Application\ Support/Code/User/settings.json |
| Linux |
$HOME/.config/Code/User/settings.json |
setting.json
{
// File explore tree indent
workbench.tree.indent: 8,
editor.formatOnSave: false,
"[javascript, python]": {
"editor.formatOnSave": true
},
"files.associations": {
"**/out/**/*.js": "plaintext"
}
}
快捷鍵
| Description |
Mac |
Windows |
Linux |
|
| Save without formatting |
Command(⌘)+ K + S |
Ctrl + K / Ctrl + Shift + S |
Ctrl + K + S |
|
參考資料