解決:
"editor.suggest.snippetsPreventQuickSuggestions": false,
wordSeparators
問題: 對于calendar-header這種中間是-的分隔符的className雙擊總是不能選中,只能選中一部分?
解決: 去掉 - 字符
"editor.wordSeparators": "`~!@#$%^&*()= [{]}\\\\\\\\|;:'\\\\",.<>/?"
quickSuggestionsDelay
問題: 這本來不是個問題,但是我記得以前是沒這個配置的,導(dǎo)致我的vscode提示一直有延遲( 默認500 ),一直覺得vscode卡..
解決:
"editor.quickSuggestionsDelay": 0
cursorBlinking
問題: brackets默認就有的功能,讓你的光標移動有個動畫效果。
解決:
"editor.cursorSmoothCaretAnimation": true
acceptSuggestionOnCommitCharacter
問題:
這種情況,輸入左括號,會成為這個樣子
這肯定不是我想要的啊
解決:
"editor.acceptSuggestionOnCommitCharacter": false
formatOnPaste
問題: 粘貼代碼之后, 又得重新格式化下代碼。如果不想改動整個代碼,還得選中粘貼的部分代碼再手動格式化。
解決: 啟用粘貼時自動格式化
editor.formatOnPaste: true
renderCharacters
問題: 只渲染小地圖大概色塊而不是具體字符, 感覺能提升性能。默認是渲染具體字符。~~~~
解決:
editor.minimap.renderCharacters: false
兩個配置
記得第一次使用vscode的時候,那時候還沒有UI設(shè)置編輯器…
workbench.settings.editor: 'json', workbench.settings.useSplitJSON: true
自動行尾加逗號
一個插件: macros
一句配置:
"macros": {
"comma": [ // 末尾加逗號并新加一行
"cursorLineEnd",
{
"command": "type",
"args": {
"text": ","
}
},
"editor.action.insertLineAfter"
]
}
一個快捷鍵:
自動插入右括號,右引號
平時好像也沒有按了左括號不需要右括號的情況~~
"editor.autoClosingBrackets": "always", "editor.autoClosingQuotes": "always",
截屏模式
類似up顏色代碼時顯示按鍵和高亮鼠標的功能
搜索Screencast然后綁定快捷鍵:
更多編程相關(guān)知識,請訪問:編程教學(xué)??!
更多關(guān)于云服務(wù)器,域名注冊,虛擬主機的問題,請訪問西部數(shù)碼官網(wǎng):m.ps-sw.cn