VsCode优化

// setting搜索exclude
Files: Exclude->添加**/.idea
Search: Exclude->添加**/build

// search->Collapse Results
选择始终展开(搜索的内容始终默认展开)

// search->Location
这个是Search的位置,设置为Panel在下部即可

// Editor: Tab Size设置为1

// HTML › Format: Wrap Line Length->800

// 去掉Detect Indentation的勾(使得tabSize为1有效)

// 设置按住一个键进行重复输入
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true(取消重复输入)

// 快捷键(不变->保持默认写出来是为了看到哪些会常用,待变->未来将改变的快捷键,待变->未来将使用的快捷键,设置为Ctrl+NumLock表示禁用)
Add Cursor Above->Win+Shift+Up
Add Cursor Below->Win+Shift+Down
Add Line Comment->Ctrl+NumLock(editorTextFocus && !editorReadonly)
Add Selection To Next Find Match->Alt+
Clear不变(terminalFocus)
Close Window不变(!editorIsOpen && !multipleEditorGroups)
Close Window不变
Compare Active File with Clipboard待变
Contine不变(inDebugMode)
Copy不变(textInputFocus)
Copy Line Down->Ctrl+Alt+Down(editorTextFocus && !editorReadonly)
Copy Line Up->Ctrl+Alt+Up(editorTextFocus && !editorReadonly)
Copy Selection不变(terminalFocus && terminalTextSelected)
Debug: Toggle Breakpoint->Alt+w(editorTextFocus)
Delete All Left不变(editorTextFocus && !editorReadonly)
Delete All Right不变(editorTextFocus && !editorReadonly)
Delete Line->Ctrl+DataCue(editorTextFocus && !editorReadonly)
Find All References待变(editorHasRe…)
Find In Files->Win+s
Find Next(将所有涉及F3的修改为Ctrl+K)
Find Next Selection(将所有涉及Ctrl+F3的修改为Ctrl+NumLock)
Find previous(将所有涉及Shift+F3的修改为Ctrl+Shift+K)
Find previous Selection(将所有涉及Ctrl+Shift+F3的修改为Ctrl+NumLock)
Focus Next Search Result不变(hasSearchResult)
Focus Previous Search Result不变(hasSearchResult)
Fold All->Alt+1(editorTextFocus)
Fold Level 1-7->除了fold level 2设置为Alt+1之外其余设置为Alt+Shift+1-7
Fold Level不变(…)
Format Document->Ctrl+Shift+F(editorTextFocus && !editorReadonly)
Unfold->Alt+2
Format Selection->Ctrl+Shift+F(editorTextFocus…)
Go Back->Alt+Left
Go Forward->Alt+Right
Go to Bracket不变(EditorTextFocus)
Go to Definition->F3(editorHasDef…)
Go to Implementation->F4(editorHasImp…)
Go to Last Edit Location->Ctrl+q
Go to Line…->Ctrl+L
Go to Symbol in File…不变(查看方法的)
Insert Line Blow不变(editorTextFocus && !editorReadonly)
Join Lines待用(editorTextFocus && !editorReadonly)
Move Line Down不变(editorTextFocus && !editorReadonly)
Move Line Up不变(editorTextFocus && !editorReadonly)
Open Definition to the Side->Alt+小键盘的.(editorHasDefinition…)
Peek Definition不变(editorHasDefinition…)
Peek Implementation不变(editorHasImp…)
Quick Fix…->Ctrl+1(editorHasCodeA…)
Refactor…待核查
Remove Line Comment->Ctrl+NumLock(editorTextFocus && !editorReadonly)
Replace不变
Replace In Files不变
Select All不变
Start Debugging->Alt+x
Start Without Debugging->Alt+z
Toggle Block Comment不变
Toggle Integrated Terminal不变(重要)
Unfold All->Alt+2(editorTextFocus)
redo->Ctrl+y(textInputFocus…)
renameFile->f2(exploreView…)
open keyboard Shortcuts->Ctrl+’
list all references(references-view.find)->Alt+E
Debug:evaluate->Alt+`
Continue->f8
workbench.action.showCommands->Alt+T

deleteFile->Delete
trigger Suggest->Alt+/
show All Commands->Ctrl+NumLock
workbench.action.quit->Ctrl+小键盘*(需要搜索,重要,这个键类似于Eclipse通过系统设置应用快捷键的功能)
editor.emmet.action.balanceOut->Alt+Shift+Up(需要搜索,著名的直接选择闭包区域)
cursorTopSelect->Ctrl+Shift+Home(需要搜索)
cursorBottomSelect->Ctrl+Shift+End(需要搜索)
rename Symbol->Alt+Shift+r(需要搜索,著名的重构)
cursorWordEndRightSelect->Ctrl+Shift+Right(需要搜索)
cursorWordStartLeftSelect->Ctrl+Shift+Left(需要搜索)
cursorWordPartLeftSelect->ALt+Shift+Left(需要搜索)
cursorWordPartRightSelect->ALt+Shift+Right(需要搜索)
Transform to Uppercase->Ctrl+Shift+x(需要搜索)
Transform to lowercase->Ctrl+Shift+y(需要搜索)
workbench.action.quickOpen->Alt+R(需要搜索,可以去掉文件预览(设置workbench.editor.enablePreviewFromQuickOpen为false即可))
Show All Commands->Alt+s(需要搜索,都修改)
Insert Line Below->右Shift+Enter
Find All References->Ctrl+G
revealInExplorer->Alt+c
deleteRight->Ctrl+NumLock
revealFileInOs->Alt+4
cursorBottom->Ctrl+End
cursorTop->Ctrl+Top
renameFile->Enter
Toggle Block comment->Ctrl+Shift+/
filesExplorer.findInFolder->Alt+Z

重构后通过esc进行确认(这个需要在keybindings.json配置(这个文件可以在键设置的上方看到))
{
“key”: “escape”,
“command”: “acceptRenameInput”,
“when”: “editorFocus && renameInputVisible”
}

以上优化可以通过:
设置用户配置:打开setting主界面->找到User的Tab页->Commonly Used->Files: Associations下的settings.json->输入vscode用户配置的内容
设置快捷键绑定:打开Keyboard shortcuts->点击右上角的类似文件的图标->输入vscode快捷键的内容

// 该项可以不设置[可以不设置]
设置里搜索renderControlCharacters并勾上可以显示tab空格,搜索renderWhitespace选择all可显示普通空格

// 去掉输入左括号就出现双括号
搜索->Auto Closing Brackets设置为never
或者配置这个"editor.autoClosingBrackets": “never”

// 去掉Add Cursor Above和Add Cursor Below快捷键

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

2023年Java面试宝典

您的鼓励是对我的肯定,共建希望

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值