最近上課聽到老師介紹Visual Studio Code 這個開發工具,試用了一下後,他的高亮度顯示色彩看起來還蠻舒服的,唯獨開啟速度仍維持微軟一貫的風格,令人不敢恭維~呵。最近加減使用這個工具來協助修改一些語法,初期使用難免有不少要調整的地方,因此開這篇主題來記錄自己會用到的設定,後續有增加的話會持續更新。
【Manually switch syntax highlighting for different programming languages】
I've been looking for this setting for a long time,Turns out it's right at the bottom right corner of the window..
【Select all occurrences of the same text】
Ctrl + F2 : Select all currently selected variables or methods。
Ctrl + Shift + L : Select all currently selected text。
【Word Wrap】
'File' - 'Preferences' - 'Settings',Click on the left side”Text Editor”,Modify the following two parameters:
Word Wrap : WordWrapColumn
Word Wrap Column : 120
【重新排版】
Shift + Alt + F
【跳出輸入建議】
預設是Ctrl + Space,會與輸入法相衝,可到「File」-「Preferences」-「Keyboard Shortcuts」,搜尋”Ctrl Space”,找到「Trigger Suggest」項目,再改成想要的即可,我改成”Alt + J”。
【參考連結】
- editor – How to manually set language for syntax highlighting in Visual Studio Code – Stack Overflow
- 官方 Visual Studio Code 快速鍵一覽表
- How do you format code in Visual Studio Code (VSCode) – Stack Overflow
- VSCode里面代码提示快捷键 – Jianshu








Leave a Reply