update
This commit is contained in:
parent
b66a71129e
commit
3251bca29a
299 changed files with 7589 additions and 37 deletions
475
vscode/keybindings.json
Normal file
475
vscode/keybindings.json
Normal file
|
@ -0,0 +1,475 @@
|
|||
// Place your key bindings in this file to override the defaultsauto[]
|
||||
[
|
||||
//removed keybinds
|
||||
{
|
||||
"key": "ctrl+shift+alt+up",
|
||||
"command": "-editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+down",
|
||||
"command": "-editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "alt+up",
|
||||
"command": "-editor.action.moveLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "alt+down",
|
||||
"command": "-editor.action.moveLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "space",
|
||||
"command": "-filesExplorer.openFilePreserveFocus",
|
||||
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsFolder && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+j",
|
||||
"command": "-workbench.action.togglePanel"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+up",
|
||||
"command": "-editor.action.insertCursorAbove",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+down",
|
||||
"command": "-editor.action.insertCursorBelow",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+up",
|
||||
"command": "-editor.action.insertCursorAbove",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+d",
|
||||
"command": "-editor.action.addSelectionToNextFindMatch",
|
||||
"when": "editorFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+s",
|
||||
"command": "-workbench.action.files.saveAs"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+s",
|
||||
"command": "-workbench.action.files.saveLocalFile",
|
||||
"when": "remoteFileDialogVisible"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+down",
|
||||
"command": "-editor.action.insertCursorBelow",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k ctrl+o",
|
||||
"command": "-workbench.action.files.openFolder",
|
||||
"when": "openFolderWorkspaceSupport"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+o",
|
||||
"command": "-editor.action.accessibleViewGoToSymbol",
|
||||
"when": "accessibilityHelpIsShown && accessibleViewGoToSymbolSupported || accessibleViewGoToSymbolSupported && accessibleViewIsShown"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+o",
|
||||
"command": "-workbench.action.gotoSymbol",
|
||||
"when": "!accessibilityHelpIsShown && !accessibleViewIsShown"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+o",
|
||||
"command": "-workbench.action.files.openFolderViaWorkspace",
|
||||
"when": "!openFolderWorkspaceSupport && workbenchState == 'workspace'"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+o",
|
||||
"command": "-workbench.action.files.openFile",
|
||||
"when": "true"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+o",
|
||||
"command": "-workbench.action.remote.showMenu"
|
||||
},
|
||||
{
|
||||
"key": "down",
|
||||
"command": "-selectNextSuggestion",
|
||||
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
|
||||
},
|
||||
{
|
||||
"key": "up",
|
||||
"command": "-selectPrevSuggestion",
|
||||
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+i",
|
||||
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "down",
|
||||
"command": "-selectNextCodeAction",
|
||||
"when": "codeActionMenuVisible"
|
||||
},
|
||||
{
|
||||
"key": "up",
|
||||
"command": "-selectPrevCodeAction",
|
||||
"when": "codeActionMenuVisible"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-extension.vim_escape",
|
||||
"when": "editorTextFocus && vim.active && !inDebugRepl"
|
||||
},
|
||||
// basic line movement
|
||||
{
|
||||
"key": "shift+alt+I",
|
||||
"command": "editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+K",
|
||||
"command": "editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "alt+i",
|
||||
"command": "editor.action.moveLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "alt+k",
|
||||
"command": "editor.action.moveLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+i",
|
||||
"command": "editor.action.insertCursorAbove",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "editor.action.insertCursorBelow",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+s",
|
||||
"command": "editor.action.addSelectionToNextFindMatch",
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+l",
|
||||
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
|
||||
"when": "editorTextFocus"
|
||||
},
|
||||
// suggestion nav
|
||||
{
|
||||
"key": "ctrl+k",
|
||||
"command": "selectNextSuggestion",
|
||||
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+i",
|
||||
"command": "selectPrevSuggestion",
|
||||
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k",
|
||||
"command": "selectNextCodeAction",
|
||||
"when": "codeActionMenuVisible"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+i",
|
||||
"command": "selectPrevCodeAction",
|
||||
"when": "codeActionMenuVisible"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k",
|
||||
"command": "workbench.action.quickOpenNavigateNext",
|
||||
"when": "inQuickInput"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+i",
|
||||
"command": "workbench.action.quickOpenNavigatePrevious",
|
||||
"when": "inQuickInput"
|
||||
},
|
||||
// open file/folder
|
||||
{
|
||||
"key": "ctrl+shift+o",
|
||||
"command": "workbench.action.files.openFolder",
|
||||
"when": "openFolderWorkspaceSupport"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+o",
|
||||
"command": "workbench.action.files.openFile",
|
||||
"when": "true"
|
||||
},
|
||||
//--------------VIM STUFF----------------------//
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "extension.vim_escape",
|
||||
"when": "editorTextFocus && !inDebugRepl && !suggestWidgetVisible"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+w",
|
||||
"command": "workbench.action.closeActiveEditor"
|
||||
},
|
||||
//terminal
|
||||
{
|
||||
"key": "ctrl+l",
|
||||
"command": "terminal.focus",
|
||||
"when": ""
|
||||
},
|
||||
{
|
||||
"key": "ctrl+j",
|
||||
"command": "workbench.action.focusActiveEditorGroup",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k",
|
||||
"command": "workbench.action.terminal.focusNext",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+i",
|
||||
"command": "workbench.action.terminal.focusPrevious",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
|
||||
{
|
||||
"key": "ctrl+n",
|
||||
"command": "workbench.action.terminal.new",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+w",
|
||||
"command": "workbench.action.terminal.kill",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
//file tree
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "workbench.explorer.fileView.focus",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+i",
|
||||
"command": "terminal.focus",
|
||||
"when": "explorerViewletFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+j",
|
||||
"command": "workbench.action.focusActiveEditorGroup",
|
||||
"when": "explorerViewletFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+w",
|
||||
"command": "workbench.action.toggleSidebarVisibility",
|
||||
"when": "explorerViewletFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+n",
|
||||
"command": "explorer.newFile",
|
||||
"when": "explorerViewletFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+n",
|
||||
"command": "explorer.newFolder",
|
||||
"when": "explorerViewletFocus"
|
||||
},
|
||||
// copilot
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "workbench.panel.chat.view.copilot.focus",
|
||||
"when": "explorerViewletFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+i",
|
||||
"command": "workbench.explorer.fileView.focus",
|
||||
"when": "!editorFocus && !terminalFocus && !explorerViewletFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+j",
|
||||
"command": "workbench.action.focusActiveEditorGroup",
|
||||
"when": "!editorFocus && !terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "editor.action.inlineSuggest.hide",
|
||||
"when": "inlineSuggestionVisible"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-editor.action.inlineSuggest.hide",
|
||||
"when": "inlineSuggestionVisible"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "editor.action.inlineEdit.reject",
|
||||
"when": "inlineEditVisible && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-editor.action.inlineEdit.reject",
|
||||
"when": "inlineEditVisible && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "cancelRenameInput",
|
||||
"when": "editorFocus && renameInputVisible"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-cancelRenameInput",
|
||||
"when": "editorFocus && renameInputVisible"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "cancelSelection",
|
||||
"when": "editorHasSelection && textInputFocus"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-cancelSelection",
|
||||
"when": "editorHasSelection && textInputFocus"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "closeFindWidget",
|
||||
"when": "editorFocus && findWidgetVisible && !isComposing"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-closeFindWidget",
|
||||
"when": "editorFocus && findWidgetVisible && !isComposing"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "editor.action.cancelSelectionAnchor",
|
||||
"when": "editorTextFocus && selectionAnchorSet"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-editor.action.cancelSelectionAnchor",
|
||||
"when": "editorTextFocus && selectionAnchorSet"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "editor.debug.action.closeExceptionWidget",
|
||||
"when": "exceptionWidgetVisible"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-editor.debug.action.closeExceptionWidget",
|
||||
"when": "exceptionWidgetVisible"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "editor.action.hideColorPicker",
|
||||
"when": "standaloneColorPickerVisible"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-editor.action.hideColorPicker",
|
||||
"when": "standaloneColorPickerVisible"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "hideCodeActionWidget",
|
||||
"when": "codeActionMenuVisible"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-hideCodeActionWidget",
|
||||
"when": "codeActionMenuVisible"
|
||||
},
|
||||
{
|
||||
"key": "capslock",
|
||||
"command": "hideSuggestWidget",
|
||||
"when": "suggestWidgetVisible && textInputFocus"
|
||||
},
|
||||
{
|
||||
"key": "escape",
|
||||
"command": "-hideSuggestWidget",
|
||||
"when": "suggestWidgetVisible && textInputFocus"
|
||||
},
|
||||
{
|
||||
"key": "j",
|
||||
"command": "-notebook.focusNextEditor",
|
||||
"when": "editorTextFocus && inputFocus && notebookEditorFocused && vim.mode == 'Normal' && notebookEditorCursorAtBoundary != 'none' && notebookEditorCursorAtBoundary != 'top'"
|
||||
},
|
||||
{
|
||||
"key": "j",
|
||||
"command": "-list.focusDown",
|
||||
"when": "listFocus && !inputFocus"
|
||||
},
|
||||
{
|
||||
"key": "k",
|
||||
"command": "-notebook.focusPreviousEditor",
|
||||
"when": "editorTextFocus && inputFocus && notebookEditorFocused && vim.mode == 'Normal' && notebookEditorCursorAtBoundary != 'bottom' && notebookEditorCursorAtBoundary != 'none'"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-jupyter.runcurrentcelladvance",
|
||||
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
"key": "f5",
|
||||
"command": "jupyter.runcurrentcell",
|
||||
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !jupyter.havenativecells && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+enter",
|
||||
"command": "-jupyter.runcurrentcell",
|
||||
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !jupyter.havenativecells && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
"key": "alt+enter",
|
||||
"command": "-jupyter.runcurrentcellandaddbelow",
|
||||
"when": "editorTextFocus && jupyter.hascodecells && !editorHasSelection && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-jupyter.execSelectionInteractive",
|
||||
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.ownsSelection && !findInputFocussed && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python' && activeEditor != 'workbench.editor.interactive'"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+enter",
|
||||
"command": "-jupyter.runAndDebugCell",
|
||||
"when": "isWorkspaceTrusted && jupyter.ispythonnotebook && !notebookKernel && notebookCellType == 'code' || isWorkspaceTrusted && jupyter.ispythonnotebook && notebookCellType == 'code' && notebookKernel =~ /^ms-toolsai.jupyter\\// && resource not in 'jupyter.notebookeditor.debugDocuments'"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-notebook.cell.executeAndSelectBelow",
|
||||
"when": "notebookCellListFocused && !inlineChatFocused && notebookCellType == 'markup' || notebookCellListFocused && notebookMissingKernelExtension && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !inlineChatFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-notebook.cell.executeAndSelectBelow",
|
||||
"when": "notebookCellListFocused && !interactiveEditorFocused && notebookCellType == 'code' || editorTextFocus && inputFocus && notebookEditorFocused && !interactiveEditorFocused"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-python.execInREPL",
|
||||
"when": "config.python.REPL.sendToNativeREPL && editorTextFocus && !accessibilityModeEnabled && !jupyter.ownsSelection && !notebookEditorFocused && editorLangId == 'python' && activeEditor != 'workbench.editor.interactive'"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-python.execSelectionInTerminal",
|
||||
"when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python' && activeEditor != 'workbench.editor.interactive'"
|
||||
},
|
||||
{
|
||||
"key": "shift+enter",
|
||||
"command": "-workbench.action.terminal.findNext",
|
||||
"when": "terminalFindInputFocused && terminalHasBeenCreated || terminalFindInputFocused && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "alt+f4",
|
||||
"command": "-workbench.action.closeWindow"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+f4",
|
||||
"command": "-editor.action.toggleScreenReaderAccessibilityMode"
|
||||
},
|
||||
]
|
227
vscode/settings.json
Normal file
227
vscode/settings.json
Normal file
|
@ -0,0 +1,227 @@
|
|||
{
|
||||
//--------------VIM STUFF----------------------//
|
||||
|
||||
"vim.useSystemClipboard": true,
|
||||
"vim.cursorStylePerMode.normal": "block",
|
||||
"vim.leader": "<Space>",
|
||||
"editor.lineNumbers": "relative",
|
||||
"vim.handleKeys": {
|
||||
},
|
||||
"vim.insertModeKeyBindingsNonRecursive": [
|
||||
|
||||
],
|
||||
"vim.visualModeKeyBindingsNonRecursive": [
|
||||
// hjkl remap
|
||||
{
|
||||
"before": ["j"],
|
||||
"after": ["h"]
|
||||
},
|
||||
{
|
||||
"before": ["k"],
|
||||
"after": ["j"]
|
||||
},
|
||||
{
|
||||
"before": ["i"],
|
||||
"after": ["k"]
|
||||
},
|
||||
{
|
||||
"before": ["h"],
|
||||
"after": ["i"]
|
||||
},
|
||||
// start of line
|
||||
{
|
||||
"before": ["_"],
|
||||
"after": ["#"]
|
||||
},
|
||||
{
|
||||
"before": ["#"],
|
||||
"after": ["_"]
|
||||
},
|
||||
// vertical movement
|
||||
{
|
||||
"before": ["<C-d>"],
|
||||
"after": ["<C-d>", "z", "z"]
|
||||
},
|
||||
{
|
||||
"before": ["<C-u>"],
|
||||
"after": ["<C-u>", "z", "z"]
|
||||
},
|
||||
// indentation
|
||||
{
|
||||
"before": ["<Tab>"],
|
||||
"after": [">"]
|
||||
},
|
||||
{
|
||||
"before": ["<S-Tab>"],
|
||||
"after": ["<"]
|
||||
},
|
||||
],
|
||||
"vim.operatorPendingModeKeyBindingsNonRecursive": [
|
||||
// hjkl remap
|
||||
{
|
||||
"before": ["j"],
|
||||
"after": ["h"]
|
||||
},
|
||||
{
|
||||
"before": ["k"],
|
||||
"after": ["j"]
|
||||
},
|
||||
{
|
||||
"before": ["i"],
|
||||
"after": ["k"]
|
||||
},
|
||||
{
|
||||
"before": ["h"],
|
||||
"after": ["i"]
|
||||
},
|
||||
// start of line
|
||||
{
|
||||
"before": ["_"],
|
||||
"after": ["#"]
|
||||
},
|
||||
{
|
||||
"before": ["#"],
|
||||
"after": ["_"]
|
||||
},
|
||||
],
|
||||
"vim.normalModeKeyBindingsNonRecursive": [
|
||||
// hjkl remap
|
||||
{
|
||||
"before": ["j"],
|
||||
"after": ["h"]
|
||||
},
|
||||
{
|
||||
"before": ["k"],
|
||||
"after": ["j"]
|
||||
},
|
||||
{
|
||||
"before": ["i"],
|
||||
"after": ["k"]
|
||||
},
|
||||
{
|
||||
"before": ["h"],
|
||||
"after": ["i"]
|
||||
},
|
||||
// start of line
|
||||
{
|
||||
"before": ["_"],
|
||||
"after": ["#"]
|
||||
},
|
||||
{
|
||||
"before": ["#"],
|
||||
"after": ["_"]
|
||||
},
|
||||
// vertical movement
|
||||
{
|
||||
"before": ["<C-d>"],
|
||||
"after": ["<C-d>", "z", "z"]
|
||||
},
|
||||
{
|
||||
"before": ["<C-u>"],
|
||||
"after": ["<C-u>", "z", "z"]
|
||||
},
|
||||
// indentation
|
||||
{
|
||||
"before": ["<Tab>"],
|
||||
"after": [">", ">"]
|
||||
},
|
||||
{
|
||||
"before": ["<S-Tab>"],
|
||||
"after": ["<", "<"]
|
||||
},
|
||||
// command pallete stuff
|
||||
{
|
||||
"before": ["leader", "o"],
|
||||
"commands": ["workbench.action.quickOpen"]
|
||||
},
|
||||
{
|
||||
"before": ["leader", "c"],
|
||||
"commands": ["workbench.action.showCommands"]
|
||||
},
|
||||
{
|
||||
"before": ["leader", "s"],
|
||||
"commands": ["workbench.action.gotoSymbol"]
|
||||
},
|
||||
{
|
||||
"before": ["leader", "f"],
|
||||
"commands": ["actions.find"]
|
||||
},
|
||||
// sidebar
|
||||
{
|
||||
"before": ["leader", "e"],
|
||||
"commands": ["workbench.explorer.fileView.focus"]
|
||||
},
|
||||
{
|
||||
"before": ["leader", "g"],
|
||||
"commands": ["workbench.panel.chat.view.copilot.focus"]
|
||||
}
|
||||
|
||||
],
|
||||
"window.titleBarStyle": "custom",
|
||||
"workbench.panel.defaultLocation": "right",
|
||||
"workbench.settings.applyToAllProfiles": ["workbench.panel.defaultLocation"],
|
||||
"workbench.startupEditor": "none",
|
||||
"security.workspace.trust.untrustedFiles": "open",
|
||||
"git.autofetch": true,
|
||||
"git.confirmSync": false,
|
||||
"terminal.integrated.cursorStyle": "line",
|
||||
"redhat.telemetry.enabled": false,
|
||||
"editor.minimap.enabled": false,
|
||||
"editor.renderWhitespace": "none",
|
||||
"git.openRepositoryInParentFolders": "never",
|
||||
"github.copilot.enable": {
|
||||
"*": false,
|
||||
"plaintext": false,
|
||||
"markdown": false,
|
||||
"scminput": false
|
||||
},
|
||||
"java.import.gradle.java.home": "/usr/lib/jvm/java-21-openjdk",
|
||||
"terminal.integrated.fontFamily": "\"Hack Nerd Font\"",
|
||||
"editor.fontFamily": "\"Hack Nerd Font\"",
|
||||
"editor.fontSize": 16,
|
||||
"terminal.integrated.fontSize": 16,
|
||||
"workbench.enableExperiments": false,
|
||||
"workbench.settings.enableNaturalLanguageSearch": false,
|
||||
"extensions.autoCheckUpdates": false,
|
||||
"update.showReleaseNotes": false,
|
||||
"explorer.confirmDelete": false,
|
||||
"window.customTitleBarVisibility": "auto",
|
||||
"workbench.sideBar.location": "right",
|
||||
"todo-tree.highlights.customHighlight": {
|
||||
"TODO": {
|
||||
"type": "text-and-comment",
|
||||
"foreground": "#000000",
|
||||
"background": "#08B5E4"
|
||||
},
|
||||
"FIXME": {
|
||||
"gutterIcon": true
|
||||
},
|
||||
"BUG": {
|
||||
"icon": "bug"
|
||||
},
|
||||
"HACK": {
|
||||
"icon": "tools"
|
||||
},
|
||||
"XXX": {
|
||||
"icon": "x"
|
||||
},
|
||||
"[ ]": {
|
||||
"icon": "issue-draft"
|
||||
},
|
||||
"[x]": {
|
||||
"icon": "issue-closed"
|
||||
}
|
||||
},
|
||||
"github.copilot.editor.enableAutoCompletions": true,
|
||||
"dart.debugExternalPackageLibraries": false,
|
||||
"dart.debugSdkLibraries": false,
|
||||
"breadcrumbs.enabled": false,
|
||||
"editor.largeFileOptimizations": false,
|
||||
"clangd.path": "/home/rafayahmad/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/bin/clangd",
|
||||
"notebook.editorOptionsCustomizations": {
|
||||
"editor.tabSize": 4,
|
||||
"editor.indentSize": 4,
|
||||
"editor.insertSpaces": false
|
||||
},
|
||||
"python.createEnvironment.trigger": "off",
|
||||
}
|
47
vscode/snippets/MySnippets.code-snippets
Normal file
47
vscode/snippets/MySnippets.code-snippets
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
|
||||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
|
||||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
|
||||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
|
||||
// Placeholders with the same ids are connected.
|
||||
// Example:
|
||||
// "Print to console": {
|
||||
// "scope": "javascript,typescript",
|
||||
// "prefix": "log",
|
||||
// "body": [
|
||||
// "console.log('$1');",
|
||||
// "$2"
|
||||
// ],
|
||||
// "description": "Log output to console"
|
||||
// }
|
||||
|
||||
//--------------------------------------------JAVA--------------------------------------------------//
|
||||
|
||||
"Game Loop": {
|
||||
"scope": "java",
|
||||
"prefix": "gloop",
|
||||
"body": [
|
||||
"@Override",
|
||||
"public void run(){",
|
||||
"",
|
||||
" long updateInterval = 1000000000/60;",
|
||||
" long nextUpdateTime = System.nanoTime() + updateInterval;",
|
||||
"",
|
||||
" while(true){",
|
||||
" update();",
|
||||
" repaint();",
|
||||
" long timeRemaining = nextUpdateTime - System.nanoTime();",
|
||||
" try{",
|
||||
" if(timeRemaining>0) Thread.sleep(timeRemaining/1000000);",
|
||||
" }"
|
||||
" catch(InterruptedException e){",
|
||||
" e.printStackTrace();"
|
||||
" }",
|
||||
" nextUpdateTime = System.nanoTime() + updateInterval;",
|
||||
" }",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
|
||||
}
|
121
vscode/snippets/cpp.json
Normal file
121
vscode/snippets/cpp.json
Normal file
|
@ -0,0 +1,121 @@
|
|||
{
|
||||
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
|
||||
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
|
||||
// same ids are connected.
|
||||
// Example:
|
||||
// "Print to console": {
|
||||
// "prefix": "log",
|
||||
// "body": [
|
||||
// "console.log('$1');",
|
||||
// "$2"
|
||||
// ],
|
||||
// "description": "Log output to console"
|
||||
// }
|
||||
|
||||
"Startup": {
|
||||
"prefix": "rafay",
|
||||
"body": [
|
||||
"#include <iostream>",
|
||||
"using namespace std;",
|
||||
"",
|
||||
"int main(){",
|
||||
"",
|
||||
"\t$0",
|
||||
"",
|
||||
"\treturn 0;",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"Better Cout": {
|
||||
"prefix": "co",
|
||||
"body": [
|
||||
"cout<<$1;$0"
|
||||
]
|
||||
},
|
||||
"fori": {
|
||||
"prefix": ["fori"],
|
||||
"body": [
|
||||
"for(${1:int} ${2:i}=${3:0};${2:i}<${4:max};${2:i}${5:++}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Indexed for loop"
|
||||
},
|
||||
"foreach": {
|
||||
"prefix": ["foreach", "iter"],
|
||||
"body": [
|
||||
"for(${1:type} ${2:var} : ${3:iterable}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Enhanced for loop"
|
||||
},
|
||||
"if": {
|
||||
"prefix": ["if"],
|
||||
"body": [
|
||||
"if(${1:condition}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if statement"
|
||||
},
|
||||
"ifelse": {
|
||||
"prefix": ["ifelse"],
|
||||
"body": [
|
||||
"if(${1:condition}){",
|
||||
"\t$2",
|
||||
"}",
|
||||
"else{",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if/else statement"
|
||||
},
|
||||
"ifnull": {
|
||||
"prefix": ["ifnull"],
|
||||
"body": [
|
||||
"if(${1:condition}==null){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if statement checking for null"
|
||||
},
|
||||
"ifnotnull": {
|
||||
"prefix": ["ifnotnull"],
|
||||
"body": [
|
||||
"if(${1:condition}!=null){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if statement checking for not null"
|
||||
},
|
||||
"While Statement": {
|
||||
"prefix": ["while"],
|
||||
"body": [
|
||||
"while(${1:condition}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "While Statement"
|
||||
},
|
||||
"Do-While Statement": {
|
||||
"prefix": ["dowhile"],
|
||||
"body": [
|
||||
"do{",
|
||||
"\t$0",
|
||||
"}while(${1:condition});"
|
||||
],
|
||||
"description": "Do-While Statement"
|
||||
},
|
||||
"Switch Statement": {
|
||||
"prefix": "switch",
|
||||
"body": [
|
||||
"switch(${1:key}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Switch Statement"
|
||||
},
|
||||
|
||||
}
|
183
vscode/snippets/java.json
Normal file
183
vscode/snippets/java.json
Normal file
|
@ -0,0 +1,183 @@
|
|||
{
|
||||
"sysout": {
|
||||
"prefix": ["sou"],
|
||||
"body": [
|
||||
"System.out.println($1);$0"
|
||||
],
|
||||
"description": "Print to standard out"
|
||||
},
|
||||
"syserr": {
|
||||
"prefix": ["syserr", "serr"],
|
||||
"body": [
|
||||
"System.err.println($1);$0"
|
||||
],
|
||||
"description": "Print to standard err"
|
||||
},
|
||||
"fori": {
|
||||
"prefix": ["fo"],
|
||||
"body": [
|
||||
"for(${1:int} ${2:i}=${3:0};${2:i}<${4:max};${2:i}${5:++}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Indexed for loop"
|
||||
},
|
||||
"foreach": {
|
||||
"prefix": ["fore"],
|
||||
"body": [
|
||||
"for(${1:type} ${2:var} : ${3:iterable}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Enhanced for loop"
|
||||
},
|
||||
"if": {
|
||||
"prefix": ["ifi"],
|
||||
"body": [
|
||||
"if(${1:condition}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if statement"
|
||||
},
|
||||
"ifelse": {
|
||||
"prefix": ["ife"],
|
||||
"body": [
|
||||
"if(${1:condition}){",
|
||||
"\t$2",
|
||||
"}",
|
||||
"else{",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if/else statement"
|
||||
},
|
||||
"ifnull": {
|
||||
"prefix": ["ifn"],
|
||||
"body": [
|
||||
"if(${1:condition}==null){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if statement checking for null"
|
||||
},
|
||||
"ifnotnull": {
|
||||
"prefix": ["ifnn"],
|
||||
"body": [
|
||||
"if(${1:condition}!=null){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "if statement checking for not null"
|
||||
},
|
||||
"While Statement": {
|
||||
"prefix": ["whi"],
|
||||
"body": [
|
||||
"while(${1:condition}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "While Statement"
|
||||
},
|
||||
"Do-While Statement": {
|
||||
"prefix": ["do"],
|
||||
"body": [
|
||||
"do{",
|
||||
"\t$0",
|
||||
"}while(${1:condition});"
|
||||
],
|
||||
"description": "Do-While Statement"
|
||||
},
|
||||
"Switch Statement": {
|
||||
"prefix": "swi",
|
||||
"body": [
|
||||
"switch(${1:key}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Switch Statement"
|
||||
},
|
||||
"trycatch": {
|
||||
"prefix": "try",
|
||||
"body": [
|
||||
"try{",
|
||||
"\t${TM_SELECTED_TEXT:$1}",
|
||||
"}",
|
||||
"catch(${2:Exception} ${3:e}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "try/catch block"
|
||||
},
|
||||
"tryresources": {
|
||||
"prefix": "tryr",
|
||||
"body": [
|
||||
"try($1){",
|
||||
"\t$2",
|
||||
"}",
|
||||
"catch(${3:Exception} ${4:e}){",
|
||||
"\t$0",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"Startup": {
|
||||
"prefix": ["rafay"],
|
||||
"body": [
|
||||
"public class ${1:${TM_FILENAME_BASE}}{",
|
||||
"\tpublic static void main(String[] args){",
|
||||
"\t\t$0",
|
||||
"\t}",
|
||||
"}"
|
||||
],
|
||||
"description": "Startup"
|
||||
},
|
||||
"class": {
|
||||
"prefix": ["cla"],
|
||||
"body": [
|
||||
"${1:public} class ${2:name}{",
|
||||
"\t$0",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"main": {
|
||||
"prefix": ["mai"],
|
||||
"body": [
|
||||
"public static void main(String[] args){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Public static main method"
|
||||
},
|
||||
"Constructor": {
|
||||
"prefix": "cstr",
|
||||
"body": [
|
||||
"${1:public} ${2:${TM_FILENAME_BASE}}($3){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Constructor"
|
||||
},
|
||||
"method": {
|
||||
"prefix": "meth",
|
||||
"body": [
|
||||
"${1:public}$2 ${3:void} ${4:name}($5){",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "Method"
|
||||
},
|
||||
"newObject": {
|
||||
"prefix": "obj",
|
||||
"body": [
|
||||
"${1:Object} ${2:foo} = new ${1}($3);$0",
|
||||
],
|
||||
"description": "Create new Object"
|
||||
},
|
||||
"Field": {
|
||||
"prefix": "var",
|
||||
"body": [
|
||||
"${1:public} ${2:String} ${3:name};"
|
||||
],
|
||||
"description": "Field"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue