Created
January 24, 2023 03:10
-
-
Save Abhinav1217/22b660cf38334bcfab01db651989e2b6 to your computer and use it in GitHub Desktop.
code-oss configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
// -- GENERAL SETUP | |
// | |
// I hate lru tab switching. Use `ctrl+p+p` for that. | |
{ | |
"key": "ctrl+tab", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ | |
"key": "ctrl+shift+tab", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "ctrl+pagedown", | |
"command": "workbench.action.openNextRecentlyUsedEditorInGroup" | |
}, | |
{ | |
"key": "ctrl+pageup", | |
"command": "workbench.action.openPreviousRecentlyUsedEditorInGroup" | |
}, | |
// Sublime text keybindings. | |
// | |
// The extension adds duplicate entries messing up with priority and behaviour. | |
// It also does not properly disable original bindings thus creating more confusion. | |
// Since I only need few, I could skip an extension and add required keybindings myself. | |
// Doing this will reduce the extension overhead and improve performance. | |
// -- | |
{ | |
"key": "ctrl+k ctrl+b", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "-workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "shift+alt+d", | |
"command": "workbench.view.debug" | |
}, | |
{ | |
"key": "ctrl+shift+d", | |
"command": "-workbench.view.debug" | |
}, | |
{ | |
"key": "ctrl+shift+d", | |
"command": "editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+up", | |
"command": "-editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+r", | |
"command": "workbench.action.gotoSymbol" | |
}, | |
{ | |
"key": "ctrl+shift+o", | |
"command": "-workbench.action.gotoSymbol" | |
}, | |
{ | |
"key": "ctrl+shift+r", | |
"command": "workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "ctrl+t", | |
"command": "-workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "ctrl+shift+up", | |
"command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+up", | |
"command": "-editor.action.moveLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+down", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "-editor.action.moveLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+up", | |
"command": "-editor.action.insertCursorAbove", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+down", | |
"command": "-editor.action.insertCursorBelow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+/", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+a", | |
"command": "-editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "editor.action.joinLines" | |
}, | |
// -- EXTENSION DEPENDENT SETTINGS | |
// Setup advanced-new-file - Need to make my own one day | |
{ | |
"key": "ctrl+n", | |
"command": "extension.advancedNewFile" | |
}, | |
{ | |
"key": "ctrl+alt+n", | |
"command": "workbench.action.files.newUntitledFile" | |
}, | |
{ | |
"key": "alt+up alt+up", | |
"command": "incrementor.incrementByTen" | |
}, | |
{ | |
"key": "ctrl+shift+up", | |
"command": "-incrementor.incrementByTen" | |
}, | |
{ | |
"key": "alt+down alt+down", | |
"command": "incrementor.decrementByTen" | |
}, | |
{ | |
"key": "ctrl+shift+down", | |
"command": "-incrementor.decrementByTen" | |
}, | |
{ | |
"key": "ctrl+shift+alt+d", | |
"command": "extension.autodocblocker", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "-extension.autodocblocker", | |
"when": "editorTextFocus" | |
}, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"breadcrumbs.enabled": false, | |
"explorer.openEditors.visible": 0, | |
"explorer.confirmDelete": false, | |
"files.encoding": "utf8", | |
"files.eol": "\n", | |
"editor.lineHeight": 25, // WTF !! | |
"editor.fontSize": 18, | |
"editor.fontFamily": "'Source Code Pro Bold','Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", | |
"editor.minimap.enabled": false, | |
"editor.bracketPairColorization.enabled": true, | |
"editor.guides.bracketPairs": "active", | |
"workbench.colorTheme": "Mariana Pro (Cool)", | |
"workbench.editor.enablePreview": false, | |
// -- Terminal | |
"terminal.external.linuxExec": "alacritty", | |
// -- Intellisense setup | |
"editor.quickSuggestionsDelay": 300, | |
"editor.suggestSelection": "recentlyUsed", | |
// -- Disable Telemetry | |
"telemetry.enableTelemetry": false, // Old and depricated since 1.61 but code still exists | |
"telemetry.telemetryLevel": "off", // New Telemetry settings. | |
"extensions.autoUpdate": false, // If you want to be more in control of extension versions. | |
// -- Project Setup | |
"files.exclude": { | |
"!**/vendor/bin/": true, | |
"**/.classpath": true, | |
"**/.factorypath": true, | |
"**/.project": true, | |
"**/.settings": true, | |
"**/node_modules": true, | |
"**/vendor": true | |
}, | |
// -- Plugins : Advanced New Files | |
"advancedNewFile.exclude": { | |
"node_modules": true, | |
"vendor": true, | |
"node_modules_electron": true, | |
"dev": true, | |
"dist": true | |
}, | |
"advancedNewFile.showInformationMessages": true, | |
"advancedNewFile.convenienceOptions": [ | |
"current", | |
"root", | |
"last" | |
], | |
// -- CSpell | |
"cSpell.enabled": false, | |
"cSpell.userWords": [ | |
"sveltejs" | |
], | |
// -- Plugins: Emmets | |
"emmet.showSuggestionsAsSnippets": true, | |
"emmet.includeLanguages": { "svelte": "html" }, | |
"files.associations": { | |
"*.css": "postcss", | |
}, | |
"deno.config": "", | |
// -- Java Project Manager | |
"java.codeGeneration.generateComments": true, | |
"java.import.gradle.home": "/home/abhinav/.sdkman/candidates/gradle/current/bin", | |
"java.configuration.runtimes": [ | |
// -- vscode doesnt work with sdkman dynamic config, | |
// It is turning into a shitty editor. | |
{ | |
"name": "JavaSE-11", | |
"path": "/home/abhinav/.sdkman/candidates/java/11.0.11.j9-adpt", | |
"default": false | |
}, | |
{ | |
"name": "JavaSE-1.8", | |
"path": "/home/abhinav/.sdkman/candidates/java/8.0.322-tem", | |
"default": false | |
}, | |
{ | |
"name": "JavaSE-17", | |
"path": "/home/abhinav/.sdkman/candidates/java/current", | |
"default": true | |
}, | |
{ | |
"name": "JavaSE-16", | |
"path": "/home/abhinav/.sdkman/candidates/java/16.0.1.j9-adpt", | |
"default": false | |
} | |
], | |
"vsintellicode.modify.editor.suggestSelection": "disabled", | |
// "[java]": { | |
// "editor.defaultFormatter": "redhat.java" | |
// }, | |
"php.validate.executablePath": "/usr/bin/php", | |
"Notes.notesLocation": "/home/abhinav/Project/ds/java/practice/ds/Notes", | |
"svelte.enable-ts-plugin": true, | |
"[html]": { | |
"editor.defaultFormatter": "SimonSiefke.prettier-vscode" | |
}, | |
// -- Remote SSH : Doesn't work with code-oss because Microsoft.... | |
// "remote.SSH.configFile": "~/.ssh/remote_code", | |
// "remote.SSH.useLocalServer": false, | |
// "remote.SSH.remotePlatform": { | |
// "172.105.50.178": "linux" | |
// }, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment