Skip to content

Instantly share code, notes, and snippets.

@nviennot
Created June 27, 2022 18:22
Show Gist options
  • Save nviennot/39a0b6961cccc832ceb3ffa24baca4ba to your computer and use it in GitHub Desktop.
Save nviennot/39a0b6961cccc832ceb3ffa24baca4ba to your computer and use it in GitHub Desktop.
VSCode settings
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+enter",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus"
},
{
"key": "enter",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus"
},
{
"key": "enter",
"command": "list.select",
"when": "listFocus && !inputFocus"
},
{"key": "cmd+a", "command": "workbench.action.terminal.focus"},
{
"key": "cmd+a",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "cmd+m",
"command": "editor.action.marker.nextInFiles",
"when": "editorFocus && !editorReadonly"
},
{
"key": "f8",
"command": "-editor.action.marker.nextInFiles",
"when": "editorFocus && !editorReadonly"
},
{
"key": "cmd+i",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "cmd+i",
"command": "editor.debug.action.showDebugHover",
"when": "editorTextFocus && inDebugMode"
},
{
"key": "cmd+k cmd+i",
"command": "-editor.debug.action.showDebugHover",
"when": "editorTextFocus && inDebugMode"
},
{
"key": "cmd+o",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+o",
"command": "goToNextReference",
"when": "inReferenceSearchEditor || referenceSearchVisible"
},
{
"key": "f12",
"command": "-goToNextReference",
"when": "inReferenceSearchEditor || referenceSearchVisible"
},
{
"key": "cmd+o",
"command": "editor.gotoNextSymbolFromResult",
"when": "hasSymbols"
},
{
"key": "f12",
"command": "-editor.gotoNextSymbolFromResult",
"when": "hasSymbols"
},
{
"key": "shift+cmd+o",
"command": "goToPreviousReference",
"when": "inReferenceSearchEditor || referenceSearchVisible"
},
{
"key": "cmd+h",
"command": "XXX",
"when": "editorTextFocus"
},{
"key": "shift+f12",
"command": "-goToPreviousReference",
"when": "inReferenceSearchEditor || referenceSearchVisible"
},
{
"key": "ctrl+enter",
"command": "workbench.action.debug.run",
"when": "debuggersAvailable && debugState != 'initializing'"
},
{
"key": "ctrl+f5",
"command": "-workbench.action.debug.run",
"when": "debuggersAvailable && debugState != 'initializing'"
},
{
"key": "shift+enter",
"command": "workbench.action.debug.stop",
"when": "inDebugMode && !focusedSessionIsAttach"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.stop",
"when": "inDebugMode && !focusedSessionIsAttach"
},
]
{
"editor.renderControlCharacters": false,
"breadcrumbs.enabled": false,
"editor.minimap.enabled": false,
"editor.cursorBlinking": "phase",
"editor.lightbulb.enabled": false,
"editor.parameterHints.enabled": false,
"zenMode.hideLineNumbers": false,
"terminal.integrated.macOptionIsMeta": true,
"editor.codeLens": false,
"editor.scrollbar.verticalScrollbarSize": 0,
"rust-analyzer.completion.postfix.enable": false,
"rust-analyzer.completion.addCallArgumentSnippets": false,
"workbench.panel.defaultLocation": "right",
"editor.wordWrapColumn": 100,
"workbench.colorCustomizations": {
"statusBar.background": "#102020",
"statusBar.foreground": "#929292",
},
"editor.semanticTokenColorCustomizations": {
"rules": {
"*.mutable": {
"fontStyle": ""
}
}
},
"editor.tokenColorCustomizations": {
"comments": "#7e7e7e"
},
"editor.fontFamily": "'DejaVu Sans Mono for Powerline', 'Fira Code', Menlo, Monaco, monospace",
"editor.fontLigatures": true,
"terminal.integrated.drawBoldTextInBrightColors": false,
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 11,
"editor.lineHeight": 15,
"terminal.integrated.fontSize": 11,
"terminal.integrated.lineHeight": 1,
"extensions.ignoreRecommendations": false,
"vim.leader": ",",
"explorer.confirmDragAndDrop": false,
"files.insertFinalNewline": true,
"cSpell.userWords": [
"checkpointing",
"cloexec",
"popen",
"sigchld",
"sigusr",
"unistd",
"zstd"
],
"cSpell.enabled": false,
"rust-analyzer.completion.autoimport.enable": false,
//"rust-analyzer.cargo.features": ["build_dep"],
//"rust-analyzer.cargo.target": "x86_64-unknown-linux-gnu",
//"rust-analyzer.checkOnSave.extraArgs": [
//"--target=x86_64-unknown-linux-gnu"
//],
"explorer.confirmDelete": false,
"search.exclude": {
"deps/": true
},
"editor.inlineSuggest.enabled": true,
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
"aws.profile": "profile:nico",
"redhat.telemetry.enabled": false,
"github.copilot.enable": {
"*": false,
"yaml": false,
"plaintext": false,
"markdown": false
},
"terminal.integrated.defaultProfile.osx": "tmux",
"terminal.integrated.profiles.osx": {
"zsh": {
"path": "zsh",
"args": [
"-l"
]
},
"tmux": {
"path": "tmux",
"args": [
"-2"
],
"icon": "terminal-tmux"
},
},
"workbench.activityBar.visible": false,
"files.trimTrailingWhitespace": true,
"security.workspace.trust.untrustedFiles": "open",
// prevents the "can't find crate for test error"
"rust-analyzer.checkOnSave.allTargets": false,
"editor.autoClosingBrackets": "never",
"editor.guides.indentation": false,
"rust-analyzer.inlayHints.chainingHints.enable": true,
"rust-analyzer.inlayHints.parameterHints.enable": false,
"rust-analyzer.inlayHints.typeHints.enable": false,
"java.import.gradle.java.home": "/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home",
"window.zoomLevel": 1,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment