Skip to content

Instantly share code, notes, and snippets.

@todd-dsm
Last active September 19, 2025 16:32
Show Gist options
  • Save todd-dsm/9fd5cc3f6b57cba7424758dda407f57f to your computer and use it in GitHub Desktop.
Save todd-dsm/9fd5cc3f6b57cba7424758dda407f57f to your computer and use it in GitHub Desktop.
Cursor/Code Base Settings

Cursor Base Settings

These are some sensible defaults; a good place to start.

Located: "$HOME/Library/Application Support/Cursor/User/settings.json"

{
"[terraform]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[hcl]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[json]": {
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[jsonc]": {
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[yaml]": {
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[yml]": {
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
"[xml]": {
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.detectIndentation": false
},
// Cursor behavior
"window.commandCenter": 1,
"files.autoSave": "onFocusChange",
"editor.fontSize": 14,
"workbench.settings.applyToAllProfiles": [
"editor.fontFamily"
],
"workbench.colorTheme": "Solarized Dark",
"makefile.configureOnOpen": true,
// Force compliant yaml, json, hcl, xml
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
// Trim whitespace automatically
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.insertFinalNewline": true,
"editor.tabSize": 2,
// Enhanced bracket pair highlighting settings
"editor.bracketPairColorization.enabled": true,
// This parameter draws lines between bracket pairs
"editor.guides.bracketPairs": "active",
"editor.guides.bracketPairsHorizontal": "active",
"editor.matchBrackets": "always",
"editor.guides.highlightActiveIndentation": true,
// Additional bracket highlighting settings
"editor.showFoldingControls": "always",
"editor.foldingHighlight": true,
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"editor.guides.indentation": true,
"editor.formatOnType": false,
"go.toolsManagement.autoUpdate": true,
"workbench.colorCustomizations": {},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment