Last active
March 21, 2024 20:17
-
-
Save chm123/fa7eb6367b69698ae9d2974548b262a9 to your computer and use it in GitHub Desktop.
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
| [style] | |
| based_on_style = pep8 | |
| column_limit = 120 | |
| coalesce_brackets = True | |
| dedent_closing_brackets = False | |
| each_dict_entry_on_separate_line = True | |
| spaces_before_comment = 2 | |
| split_before_first_argument = False | |
| split_before_named_assigns = False | |
| split_all_top_level_comma_separated_values = True | |
| use_tabs = False |
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
| [ | |
| { | |
| "key": "cmd+up", | |
| "command": "workbench.action.compareEditor.previousChange", | |
| "when": "textCompareEditorVisible && isInDiffEditor" | |
| }, | |
| { | |
| "key": "cmd+down", | |
| "command": "workbench.action.compareEditor.nextChange", | |
| "when": "textCompareEditorVisible && isInDiffEditor" | |
| } | |
| ] |
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
| { | |
| // Editor | |
| "editor.formatOnSave": true, | |
| "editor.formatOnPaste": true, | |
| "editor.formatOnType": true, | |
| "editor.formatOnSaveMode": "file", | |
| "editor.codeActionsOnSave": { | |
| "source.organizeImports": "explicit" | |
| }, | |
| "editor.rulers": [ | |
| 120 | |
| ], | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| // Files | |
| "files.autoSave": "afterDelay", | |
| "files.trimTrailingWhitespace": true, | |
| "files.insertFinalNewline": true, | |
| "files.watcherExclude": { | |
| "**/.git/objects/**": true, | |
| "**/.git/subtree-cache/**": true, | |
| "**/.mypy_cache/**": true, | |
| "**/__pycache__/**": true | |
| }, | |
| // Git | |
| "git.autofetch": true, | |
| // isort, automatically sort imports | |
| "isort.args": [ | |
| "-l", | |
| "120", | |
| "-m", | |
| "2", | |
| "--src", | |
| "${workspaceFolder}" | |
| ], | |
| // yapf code formatter | |
| "editor.defaultFormatter": "eeyore.yapf", | |
| "yapf.args": ["--style", "${workspaceFolder}/.vscode/.style.yapf"], | |
| // pylint | |
| "python.languageServer": "Default", | |
| "pylint.args": [ | |
| "--max-line-length=120", | |
| "--max-attributes=20", | |
| "--ignored-modules=tensorflow,cv2", | |
| "--generated-members=numpy.*,torch.*", | |
| "--good-names=df,op,f,i,j,k,x,y,z", | |
| "--jobs=0" | |
| ], | |
| // Files Excluded By VSCode | |
| "files.exclude": { | |
| "**/__pycache__": true, | |
| "**/*.pyc": true, | |
| "**/.pytest_cache": true, | |
| "**/.ipynb_checkpoints": true, | |
| "*.egg-info/**": true, | |
| "**/.mypy_cache": true, | |
| }, | |
| // Type Hinting | |
| "python.analysis.typeCheckingMode": "basic", | |
| // Spell check | |
| "cSpell.words": [ | |
| "lphp" | |
| ], | |
| } |
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
| { | |
| // Terminal | |
| "terminal.integrated.cursorStyle": "line", | |
| "terminal.integrated.cursorBlinking": true, | |
| "terminal.integrated.copyOnSelection": true, | |
| "terminal.integrated.inheritEnv": false, | |
| // Editor | |
| "editor.acceptSuggestionOnEnter": "off", | |
| "editor.codeActionsOnSave": {}, | |
| "editor.minimap.enabled": false, | |
| "editor.rulers": [ | |
| 120 | |
| ], | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| // Files | |
| "files.autoSave": "afterDelay", | |
| "files.trimTrailingWhitespace": true, | |
| // Git | |
| "git.autofetch": true, | |
| "git.mergeEditor": true, | |
| "git.mergeEditor.showCheckboxes": true, | |
| "git.mergeEditor.showCodeLenses": false, | |
| // Jupyter | |
| "workbench.editorAssociations": { | |
| "*.ipynb": "jupyter-notebook" | |
| }, | |
| "notebook.cellToolbarLocation": { | |
| "default": "right", | |
| "jupyter-notebook": "left" | |
| }, | |
| "python.defaultInterpreterPath": "/Users/212735706/.pyenv/versions/3.9.5/bin/python", | |
| "explorer.confirmDragAndDrop": false, | |
| // Remote docker | |
| "docker.host": "ssh://dgx", | |
| "editor.fontSize": 10, | |
| "jupyter.askForKernelRestart": false, | |
| "window.zoomLevel": 1, | |
| "editor.language.colorizedBracketPairs": [ | |
| ], | |
| "terminal.integrated.fontFamily": "Hack", | |
| "editor.tokenColorCustomizations": { | |
| } //"tcp://localhost:45312" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment