Created
May 6, 2022 13:30
-
-
Save rangsimanketkaew/3dcdf9d5041154279a39966ed38c361b to your computer and use it in GitHub Desktop.
Setting config for VS Code
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
| { | |
| "files.autoSave": "afterDelay", | |
| "editor.formatOnSave": true, | |
| "workbench.iconTheme": "material-icon-theme", | |
| "git.autofetch": true, | |
| "[json]": { | |
| "editor.defaultFormatter": "vscode.json-language-features" | |
| }, | |
| "git.enableSmartCommit": true, | |
| "editor.fontFamily": "Consolas, 'Courier New', monospace, 'Source Code Pro', Roboto", | |
| // "python.formatting.autopep8Args": ["--max-line-length", "120", "--experimental"], | |
| // "python.formatting.yapfArgs": ["--style", "{based_on_style: chromium, indent_width: 20}"], | |
| "python.formatting.autopep8Args": [ | |
| // "--line-length=110", | |
| "--max-line-length", | |
| "110", | |
| "--aggressive" | |
| ], | |
| "python.formatting.blackArgs": ["--line-length=110"], | |
| "editor.rulers": [110], | |
| "[git-commit]": { | |
| "editor.rulers": [72], | |
| "workbench.editor.restoreViewState": false | |
| }, | |
| "python.linting.pylintArgs": ["--generate-members"], | |
| "[jsonc]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| // C++ | |
| "C_Cpp.default.cppStandard": "c++14", | |
| "C_Cpp.default.cStandard": "c11", | |
| // Code runner setting | |
| "code-runner.runInTerminal": true, | |
| "code-runner.executorMap": { | |
| "python": "$pythonPath $fullFileName", | |
| "cpp": "cd $dir && g++ -std=c++14 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", | |
| "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", | |
| "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt -ffree-form && $dir$fileNameWithoutExt", | |
| "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", | |
| "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", | |
| "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" | |
| }, | |
| "jupyter.askForKernelRestart": false, | |
| "terminal.integrated.commandsToSkipShell": ["language-julia.interrupt"], | |
| "workbench.editorAssociations": { | |
| "*.ipynb": "jupyter-notebook" | |
| }, | |
| "files.eol": "\n", | |
| "notebook.cellToolbarLocation": { | |
| "default": "right", | |
| "jupyter-notebook": "left" | |
| }, | |
| "python.terminal.executeInFileDir": true, | |
| "settingsSync.ignoredExtensions": [], | |
| "editor.fontSize": 15, | |
| "terminal.integrated.defaultProfile.osx": "zsh", | |
| "terminal.integrated.inheritEnv": false, | |
| "git.ignoreRebaseWarning": true, | |
| "remote.WSL2.connectionMethod": "localhost", | |
| "terminal.integrated.defaultProfile.windows": "Command Prompt", | |
| "cmake.configureOnOpen": false, | |
| "markdown-preview-github-styles.colorTheme": "light", | |
| "[python]": { | |
| "editor.defaultFormatter": "ms-python.python" | |
| }, | |
| "python.formatting.provider": "black", | |
| "[markdown]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| // Fortran | |
| "fortran.fortls.path": "fortls", | |
| "fortran.linter.extraArgs": ["-ffree-form"], | |
| "files.associations": { | |
| "*.F": "FortranFreeForm", | |
| "*.f": "FortranFreeForm" | |
| }, | |
| // "[fortran_fixed-form]": { | |
| // "editor.rulers": [1, 5, 6, 72, 80] | |
| // }, | |
| // free source form for F90 | |
| // "[FortranFreeForm]": { | |
| // "editor.rulers": [0, 1, 5, 6, 79, 120] | |
| // }, | |
| // LaTeX Workshop | |
| // "latex-workshop.latex.autoBuild.run": "never", | |
| "latex-workshop.view.pdf.viewer": "tab", | |
| // "latex-workshop.latex.option.maxPrintLine.enabled": false, | |
| // "latex-workshop.latex.build.forceRecipeUsage": false, | |
| "latex-workshop.latex.recipe.default": "lastUsed", | |
| "latex-workshop.latex.recipes": [ | |
| { | |
| "name": "latexmk", | |
| "tools": ["latexmk"] | |
| }, | |
| { | |
| "name": "Linux: xelatex", | |
| "tools": ["xelatex-linux"] | |
| }, | |
| { | |
| "name": "Linux: xelatex ➞ bibtex ➞ xelatex`×2", | |
| "tools": [ | |
| "xelatex-linux", | |
| "bibtex-linux", | |
| "xelatex-linux", | |
| "xelatex-linux" | |
| ] | |
| }, | |
| { | |
| "name": "Windows: xelatex", | |
| "tools": ["xelatex-win"] | |
| }, | |
| { | |
| "name": "Windows: xelatex ➞ bibtex ➞ xelatex`×2", | |
| "tools": ["xelatex-win", "bibtex-win", "xelatex-win", "xelatex-win"] | |
| }, | |
| { | |
| "name": "Windows: pdflatex ➞ bibtex ➞ pdflatex`×2", | |
| "tools": ["pdflatex-win", "bibtex-win", "pdflatex-win", "pdflatex-win"] | |
| } | |
| ], | |
| "latex-workshop.latex.tools": [ | |
| { | |
| "name": "latexmk", | |
| "command": "latexmk", | |
| "args": [ | |
| "-synctex=1", | |
| "-interaction=nonstopmode", | |
| "-file-line-error", | |
| "-pdf", | |
| "-outdir=%OUTDIR%", | |
| "%DOC%" | |
| ], | |
| "env": {} | |
| }, | |
| { | |
| "name": "xelatex-linux", | |
| "command": "/home/modules/texlive/2018/bin/x86_64-linux/xelatex", | |
| "args": [ | |
| // "--shell-escape", | |
| "-synctex=1", | |
| "-interaction=nonstopmode", | |
| "-file-line-error", | |
| "%DOC%" | |
| ], | |
| "env": {} | |
| }, | |
| { | |
| "name": "pdflatex-linux", | |
| "command": "/home/modules/texlive/2018/bin/x86_64-linux/pdflatex", | |
| "args": [ | |
| "-synctex=1", | |
| "-interaction=nonstopmode", | |
| "-file-line-error", | |
| "%DOC%" | |
| ], | |
| "env": {} | |
| }, | |
| { | |
| "name": "bibtex-linux", | |
| "command": "/home/modules/texlive/2018/bin/x86_64-linux/bibtex", | |
| "args": ["%DOCFILE%"], | |
| "env": {} | |
| }, | |
| { | |
| "name": "xelatex-win", | |
| "command": "xelatex.exe", | |
| "args": [ | |
| // "--shell-escape", | |
| "-synctex=1", | |
| "-interaction=nonstopmode", | |
| "-file-line-error", | |
| "%DOC%" | |
| ], | |
| "env": {} | |
| }, | |
| { | |
| "name": "pdflatex-win", | |
| "command": "pdflatex.exe", | |
| "args": [ | |
| "-synctex=1", | |
| "-interaction=nonstopmode", | |
| "-file-line-error", | |
| "%DOC%" | |
| ], | |
| "env": {} | |
| }, | |
| { | |
| "name": "bibtex-win", | |
| "command": "bibtex.exe", | |
| "args": ["%DOCFILE%"], | |
| "env": {} | |
| } | |
| ], | |
| "notebook.output.textLineLimit": 50 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment