Visual Studio and Visual Studio Code (vscode)
更新 : 2021-02-13
auto refresh when save
https://dev.to/juxant/auto-refresh-with-dotnet-watch-for-asp-net-core-projects-20no
option > Project and Solution > Asp.net core > auto buuld refresh options 选 after save change
只有在 non debug mode 才管用哦
vs code 不需要看到 refrence
把 editor.codeLens 关掉就可以了
更新 : 2017-03-01
https://marketplace.visualstudio.com/items?itemName=HookyQR.beautify
这个插件可以让 html 整理起来比较好看.
调东西 :
左上角 File -> Preferences -> Workspace Settings ( User Settings 也可以, 它是 for 所有的 project, Workspace 是针对目前这个 project )
1. hide .js, .map when use .ts
and node_mudules, debug.log
"files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/.DS_Store": true, // add on "**/node_modules/": true, "**/npm-debug.log*/": true, "**/*.js.map": true, "**/*.js": {"when": "$(basename).ts"} }
2.Zoom with mouse Wheel
"editor.mouseWheelZoom": true
2.1 scroll bar 旁边的小图
"editor.minimap.enabled": true
3.修改热键
https://code.visualstudio.com/Docs/customization/keybindings
File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on Mac)
// Place your key bindings in this file to overwrite the defaults [ { "key": "ctrl+l", "command": "editor.action.deleteLines", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+k ctrl+f", "command": "editor.action.format", "when": "editorHasFormattingProvider && editorTextFocus && !editorReadonly" }, { "key": "ctrl+w", //本来是 ctrl+d, 而本来的 ctrl+w 是close window (看左边参考) "command": "editor.action.addSelectionToNextFindMatch", "when": "editorFocus" } ] // Fold (Ctrl+Shift+[) folds the innermost uncollapsed region at the cursor // Unfold (Ctrl+Shift+]) unfolds the collapsed region at the cursor // Fold All (Ctrl+K Ctrl+0) folds all region in the editor // Unfold All (Ctrl+K Ctrl+J) unfolds all regions in the editor
4. 常用 hotkeys (vscode and vs2015)