settings.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "cursor.ai.fileEditing": true,
  3. "cursor.ai.autoApply": true,
  4. "cursor.ai.confirmBeforeEdit": false,
  5. "cursor.ai.backupBeforeEdit": true,
  6. "cursor.chat.allowFileModifications": true,
  7. "files.autoSave": "afterDelay",
  8. "files.autoSaveDelay": 1000,
  9. "editor.formatOnSave": true,
  10. "editor.codeActionsOnSave": {
  11. "source.fixAll": "explicit"
  12. },
  13. "java.debug.settings.onBuildFailureProceed": true,
  14. "maven.view": "flat",
  15. "workbench.editorAssociations": {
  16. "*.md": "vscode.markdown.preview.editor"
  17. },
  18. "markdown.preview.openMarkdownLinks": "inPreview",
  19. "markdown.preview.automaticallyShowPreviewOfMarkdownBeingEdited": true,
  20. "markdown.preview.fontFamily": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
  21. "markdown.preview.fontSize": 14,
  22. "markdown.preview.lineHeight": 1.6,
  23. "markdown.preview.scrollPreviewWithEditor": true,
  24. "markdown.preview.scrollEditorWithPreview": true,
  25. "markdown.math.enabled": true,
  26. "markdown.preview.markdownItOptions": {
  27. "html": true,
  28. "linkify": true,
  29. "typographer": true
  30. },
  31. "editor.wordWrap": "on",
  32. "editor.lineNumbers": "on",
  33. "editor.minimap.enabled": true,
  34. "explorer.confirmDelete": false,
  35. "explorer.confirmDragAndDrop": false,
  36. "workbench.editor.enablePreview": false,
  37. "workbench.editor.enablePreviewFromQuickOpen": false,
  38. "editor.hover.enabled": true,
  39. "editor.hover.delay": 1000,
  40. "editor.hover.sticky": false,
  41. "editor.quickSuggestions": {
  42. "other": true,
  43. "comments": false,
  44. "strings": true
  45. },
  46. "editor.quickSuggestionsDelay": 100,
  47. "editor.suggest.preview": false,
  48. "editor.suggest.showIcons": true,
  49. "editor.suggest.maxVisibleSuggestions": 8,
  50. "problems.decorations.enabled": false,
  51. "git.decorations.enabled": false,
  52. "workbench.editor.showTabs": "multiple",
  53. "workbench.editor.tabCloseButton": "right",
  54. "workbench.editor.tabSizing": "fit",
  55. "editor.minimap.enabled": false,
  56. "workbench.sideBar.location": "left",
  57. "editor.parameterHints.enabled": true,
  58. "editor.parameterHints.cycle": false,
  59. "terminal.integrated.showExitAlert": false,
  60. "typescript.suggest.includeCompletionsForImportStatements": true,
  61. "typescript.suggest.includeCompletionsForModuleExports": true,
  62. "typescript.preferences.includePackageJsonAutoImports": "auto",
  63. "cursor.chat.showInEditor": false,
  64. "cursor.preview.enabled": false,
  65. "files.associations": {
  66. "*.vue": "vue",
  67. "*.tsx": "typescriptreact",
  68. "*.jsx": "javascriptreact"
  69. },
  70. "workbench.editor.tabActionLocation": "right",
  71. // 禁用所有预览相关功能
  72. "workbench.editor.preview": false,
  73. "workbench.editor.openPositioning": "left",
  74. "workbench.editor.focusRecentEditorAfterClose": false,
  75. "workbench.editor.restoreViewState": false,
  76. // Vue 相关设置
  77. "vetur.preview.port": 0,
  78. "vetur.preview.enabled": false,
  79. // 禁用自动预览
  80. "auto-preview.enabled": false,
  81. "preview.enabled": false,
  82. // 禁用弹窗和对话框
  83. "workbench.startupEditor": "none",
  84. "window.dialogStyle": "custom",
  85. "window.confirmBeforeClose": "never",
  86. // 编辑器行为设置
  87. "editor.autoClosingBrackets": "always",
  88. "editor.autoClosingQuotes": "always",
  89. "editor.autoSurround": "brackets",
  90. "editor.codeLens": true,
  91. "editor.lightbulb.enabled": "off",
  92. "java.compile.nullAnalysis.mode": "automatic",
  93. "java.configuration.updateBuildConfiguration": "interactive",
  94. "java.autobuild.enabled": "disabled"
  95. }