keybindings.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [
  2. // 快速切换预览功能
  3. {
  4. "key": "cmd+shift+p",
  5. "command": "-workbench.action.togglePreviewMode",
  6. "when": "editorTextFocus"
  7. },
  8. // 关闭所有预览窗口
  9. {
  10. "key": "cmd+shift+w",
  11. "command": "workbench.action.closeAllEditors"
  12. },
  13. // 快速切换AI聊天面板
  14. {
  15. "key": "cmd+shift+c",
  16. "command": "cursor.chat.toggle"
  17. },
  18. // 禁用某些自动触发的预览
  19. {
  20. "key": "escape",
  21. "command": "closeReferenceSearch",
  22. "when": "referenceSearchVisible"
  23. },
  24. // 禁用预览相关的快捷键
  25. {
  26. "key": "space",
  27. "command": "-filesExplorer.openFilePreserveFocus",
  28. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
  29. },
  30. {
  31. "key": "enter",
  32. "command": "explorer.openAndPassFocus",
  33. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
  34. },
  35. // 禁用AI代码预览快捷键
  36. {
  37. "key": "cmd+k cmd+v",
  38. "command": "-cursor.ai.preview.toggle"
  39. },
  40. {
  41. "key": "cmd+shift+v",
  42. "command": "-cursor.ai.preview.show"
  43. }
  44. ]