Last active
April 10, 2023 13:38
-
-
Save HanjoStudy/d49ca3cecc58f02f29c7ea6e2fd0bdaa to your computer and use it in GitHub Desktop.
Rstudio vscode settings
This file contains hidden or 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
# code --list-extensions | xargs -L 1 echo code --install-extension | |
code --install-extension akamud.vscode-theme-onedark | |
code --install-extension bianxianyang.htmlplay | |
code --install-extension DavidAnson.vscode-markdownlint | |
code --install-extension foxundermoon.shell-format | |
code --install-extension geddski.macros | |
code --install-extension hediet.vscode-drawio | |
code --install-extension jithurjacob.nbpreviewer | |
code --install-extension kylebarron.stata-enhanced | |
code --install-extension ms-azuretools.vscode-docker | |
code --install-extension ms-python.isort | |
code --install-extension ms-python.python | |
code --install-extension ms-toolsai.jupyter | |
code --install-extension ms-toolsai.jupyter-keymap | |
code --install-extension ms-toolsai.jupyter-renderers | |
code --install-extension ms-toolsai.vscode-jupyter-cell-tags | |
code --install-extension ms-toolsai.vscode-jupyter-slideshow | |
code --install-extension ms-vscode-remote.remote-containers | |
code --install-extension ms-vscode-remote.remote-ssh | |
code --install-extension ms-vscode-remote.remote-ssh-edit | |
code --install-extension ms-vscode-remote.remote-wsl | |
code --install-extension ms-vscode-remote.vscode-remote-extensionpack | |
code --install-extension ms-vscode.remote-explorer | |
code --install-extension ms-vscode.remote-server | |
code --install-extension mtxr.sqltools | |
code --install-extension mtxr.sqltools-driver-pg | |
code --install-extension PKief.material-icon-theme | |
code --install-extension quarto.quarto | |
code --install-extension RDebugger.r-debugger | |
code --install-extension REditorSupport.r | |
code --install-extension REditorSupport.r-lsp | |
code --install-extension ria.elastic | |
code --install-extension ritwickdey.LiveServer | |
code --install-extension rohinivsenthil.postcode | |
code --install-extension sdras.night-owl | |
code --install-extension spadin.remote-x11 | |
code --install-extension spadin.remote-x11-ssh | |
code --install-extension tht13.html-preview-vscode | |
code --install-extension tomoki1207.pdf | |
code --install-extension yzhang.markdown-all-in-one | |
code --install-extension zhuangtongfa.material-theme | |
code --install-extension Zignd.html-css-class-completion |
This file contains hidden or 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 defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+d", | |
"command": "editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "macros.pythonExecSelectionAndCursorDown", | |
"when": "editorTextFocus && editorLangId == 'python'" | |
}, | |
{ | |
"key": "Ctrl+Shift+m", | |
"command": "type", | |
"args": { | |
"text": " %>% " | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "Ctrl+Alt+i", | |
"command": "type", | |
"args": { | |
"text": "```{r}\n\n```" | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "Ctrl+Alt+p", | |
"command": "type", | |
"args": { | |
"text": "```{python}\n\n```" | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "Alt+-", | |
"command": "type", | |
"args": { | |
"text": " <- " | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+k", | |
"command": "-editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+alt", | |
"command": "workbench.action.toggleMultiCursorModifier" | |
}, | |
{ | |
"key": "ctrl+shift+c", | |
"command": "editor.action.addCommentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+k ctrl+c", | |
"command": "-editor.action.addCommentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+c", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+/", | |
"command": "-editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+down", | |
"command": "-editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+up", | |
"command": "editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+alt+up", | |
"command": "-editor.action.copyLinesUpAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-jupyter.execSelectionInteractive", | |
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.ownsSelection && !findInputFocussed && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-jupyter.runcurrentcell", | |
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.hascodecells && !editorHasSelection && !jupyter.havenativecells && !notebookEditorFocused" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-editor.action.insertLineAfter", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-notebook.cell.insertCodeCellBelow", | |
"when": "notebookCellListFocused && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-notebook.cell.quitEdit", | |
"when": "config.jupyter.enableKeyboardShortcuts && inputFocus && notebookEditorFocused && !editorHasMultipleSelections && !editorHasSelection && !editorHoverVisible && notebookCellType == 'markup'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-editor.action.previousMatchFindAction", | |
"when": "editorFocus && findInputFocussed" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "python.execSelectionInTerminal", | |
"when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-python.execSelectionInTerminal", | |
"when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
}, | |
// Toggle between terminal and editor focus | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus" | |
}, | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
// Toggle between editor tabs | |
{ | |
"key": "ctrl+up", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ | |
"key": "ctrl+down", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "ctrl+alt+u", | |
"command": "editor.action.transformToUppercase", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+alt+l", | |
"command": "editor.action.transformToLowercase", | |
"when": "editorTextFocus" | |
} | |
] |
This file contains hidden or 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
{ | |
"workbench.editorAssociations": { | |
"*.ipynb": "jupyter-notebook" | |
}, | |
"notebook.cellToolbarLocation": { | |
"default": "right", | |
"jupyter-notebook": "left" | |
}, | |
"workbench.colorTheme": "One Dark Pro", | |
"workbench.iconTheme": "material-icon-theme", | |
"r.rterm.linux": "/home/hanjo/anaconda3/bin/radian", | |
"r.lsp.diagnostics": true, | |
"r.bracketedPaste": true, | |
"window.zoomLevel": 1, | |
"jupyter.sendSelectionToInteractiveWindow": true, | |
"python.dataScience.sendSelectionToInteractiveWindow": true, | |
"macros": { // update: requires macros extension by publisher:"geddski" | |
"pythonExecSelectionAndCursorDown": [ | |
"python.execSelectionInTerminal", | |
//"vscode.window.activeTextEditor.show()", | |
"cursorDown" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment