Skip to content

Instantly share code, notes, and snippets.

@ryandvmartin
Last active November 25, 2019 23:02
Show Gist options
  • Save ryandvmartin/4dcf558bb0784e21aa90e35f1f9b9c75 to your computer and use it in GitHub Desktop.
Save ryandvmartin/4dcf558bb0784e21aa90e35f1f9b9c75 to your computer and use it in GitHub Desktop.
RM's VSCode Dev Setup
{"lastUpload":"2019-11-25T23:02:26.476Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "2be7cf14-2603-402e-9771-fd79df83cdf8",
"publisherId": "twxs.cmake",
"publisherDisplayName": "twxs"
},
"name": "cmake",
"publisher": "twxs",
"version": "0.0.17"
},
{
"metadata": {
"id": "7c889349-8749-43d4-8b5e-08939936d7f4",
"publisherId": "ms-vscode.cmake-tools",
"publisherDisplayName": "ms-vscode"
},
"name": "cmake-tools",
"publisher": "ms-vscode",
"version": "1.2.2"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "690b692e-e8a9-493f-b802-8089d50ac1b2",
"publisherId": "ms-vscode.cpptools",
"publisherDisplayName": "ms-vscode"
},
"name": "cpptools",
"publisher": "ms-vscode",
"version": "0.26.1"
},
{
"metadata": {
"id": "da7e26d5-d57c-4742-ab47-d77fb189e195",
"publisherId": "cschlosser.doxdocgen",
"publisherDisplayName": "cschlosser"
},
"name": "doxdocgen",
"publisher": "cschlosser",
"version": "0.5.2"
},
{
"metadata": {
"id": "9d9039cc-ea73-4083-9727-90d4342444a6",
"publisherId": "hansec.fortran-ls",
"publisherDisplayName": "hansec"
},
"name": "fortran-ls",
"publisher": "hansec",
"version": "0.6.0"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.0"
},
{
"metadata": {
"id": "61d03280-3919-4dd1-bce1-178ca21fdeaf",
"publisherId": "James-Yu.latex-workshop",
"publisherDisplayName": "James-Yu"
},
"name": "latex-workshop",
"publisher": "James-Yu",
"version": "8.4.1"
},
{
"metadata": {
"id": "64379b4d-40cd-415a-8643-b07572d4a243",
"publisherId": "krvajalm.linter-gfortran",
"publisherDisplayName": "krvajalm"
},
"name": "linter-gfortran",
"publisher": "krvajalm",
"version": "2.1.1"
},
{
"metadata": {
"id": "1f5eb737-5496-44a3-a8a1-36a85eee4979",
"publisherId": "magicstack.MagicPython",
"publisherDisplayName": "magicstack"
},
"name": "MagicPython",
"publisher": "magicstack",
"version": "1.1.0"
},
{
"metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "zhuangtongfa.material-theme",
"publisherDisplayName": "zhuangtongfa"
},
"name": "material-theme",
"publisher": "zhuangtongfa",
"version": "3.1.2"
},
{
"metadata": {
"id": "0d1241e3-fa60-4f24-8f2a-6d7085677c48",
"publisherId": "ionutvmi.path-autocomplete",
"publisherDisplayName": "ionutvmi"
},
"name": "path-autocomplete",
"publisher": "ionutvmi",
"version": "1.13.3"
},
{
"metadata": {
"id": "1b747f06-3789-4ebd-ac99-f1fe430c3347",
"publisherId": "alefragnani.project-manager",
"publisherDisplayName": "alefragnani"
},
"name": "project-manager",
"publisher": "alefragnani",
"version": "10.9.1"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2019.11.50794"
},
{
"metadata": {
"id": "f5188937-53e0-45bb-a16d-61231003fa3b",
"publisherId": "donjayamanne.python-extension-pack",
"publisherDisplayName": "donjayamanne"
},
"name": "python-extension-pack",
"publisher": "donjayamanne",
"version": "1.6.0"
},
{
"metadata": {
"id": "a5a4d637-aa11-4bd1-b404-9f10390f8d4b",
"publisherId": "lextudio.restructuredtext",
"publisherDisplayName": "lextudio"
},
"name": "restructuredtext",
"publisher": "lextudio",
"version": "116.0.0"
},
{
"metadata": {
"id": "a150991b-031b-457a-b823-ef4c45425a1b",
"publisherId": "karyfoundation.theme-karyfoundation-themes",
"publisherDisplayName": "karyfoundation"
},
"name": "theme-karyfoundation-themes",
"publisher": "karyfoundation",
"version": "18.2.1"
},
{
"metadata": {
"id": "e96f7482-8e97-4155-8a7c-ad5fab4d8b2d",
"publisherId": "jprestidge.theme-material-theme",
"publisherDisplayName": "jprestidge"
},
"name": "theme-material-theme",
"publisher": "jprestidge",
"version": "1.0.1"
},
{
"metadata": {
"id": "d0bb90fc-a605-465f-a90d-d51c16d7b7b9",
"publisherId": "ms-vscode.Theme-TomorrowKit",
"publisherDisplayName": "ms-vscode"
},
"name": "Theme-TomorrowKit",
"publisher": "ms-vscode",
"version": "0.1.4"
},
{
"metadata": {
"id": "dffaf5a1-2219-434b-9d87-cb586fd59260",
"publisherId": "Equinusocio.vsc-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-material-theme",
"publisher": "Equinusocio",
"version": "30.0.0"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "9.6.0"
},
{
"metadata": {
"id": "d1232d17-9a0f-4fda-9cf0-e4bf18d567ae",
"publisherId": "chrisdias.vscode-opennewinstance",
"publisherDisplayName": "chrisdias"
},
"name": "vscode-opennewinstance",
"publisher": "chrisdias",
"version": "0.0.6"
},
{
"metadata": {
"id": "afc7b7f6-486c-4560-94cb-6130ea88cdb8",
"publisherId": "spmeesseman.vscode-taskexplorer",
"publisherDisplayName": "spmeesseman"
},
"name": "vscode-taskexplorer",
"publisher": "spmeesseman",
"version": "1.21.0"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+e",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "latex-workshop.build"
},
{
"key": "ctrl+l j",
"command": "latex-workshop.synctex"
},
{
"key": ".",
"command": ""
},
{
"key": "ctrl+l backspace",
"command": "latex-workshop.clean"
},
{
"key": "ctrl+shift+m",
"command": "editor.action.smartSelect.grow",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+m",
"command": "workbench.actions.view.problems"
},
{
"key": "ctrl+l v",
"command": "latex-workshop.view"
},
{
"key": "ctrl+l alt+v",
"command": "-latex-workshop.view",
"when": "editorTextFocus && latex-workshop:altkeymap"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+j",
"command": "-workbench.action.search.toggleQueryDetails",
"when": "searchViewletVisible"
},
{
"key": "ctrl+shift+j",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "ctrl+t",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+o",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "ctrl+alt+right",
"command": "-workbench.action.moveEditorToNextGroup"
},
{
"key": "ctrl+alt+right",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+alt+left",
"command": "workbench.action.terminal.focusPrevious"
},
{
"key": "ctrl+alt+left",
"command": "-workbench.action.moveEditorToPreviousGroup"
},
{
"key": "ctrl+shift+b",
"command": "cmake.build"
},
{
"key": "f7",
"command": "-cmake.build"
},
{
"key": "ctrl+shift+b",
"command": "-workbench.action.tasks.build"
}
]
{
"workbench.activityBar.visible": true,
"editor.minimap.enabled": true,
"git.autofetch": true,
"git.confirmSync": false,
"window.menuBarVisibility": "default",
"workbench.editor.tabSizing": "shrink",
"editor.multiCursorModifier": "ctrlCmd",
"files.exclude": {
"./ext/eigen-git-mirror": true,
"./ext/googletest": true,
".coverage": true,
"**/__latex*": true,
"**/__pycache__": true,
"**/.DS_Store": true,
"**/.git": true,
"**/.hg": true,
"**/.pytest_cache": true,
"**/.svn": true,
"**/.vs": true,
"**/*.00t": true,
"**/*.acn": true,
"**/*.asc": true,
"**/*.aux": true,
"**/*.bbl": true,
"**/*.bef": true,
"**/*.bhst": true,
"**/*.blg": true,
"**/*.bmf": true,
"**/*.chk": true,
"**/*.csv": true,
"**/*.dat": true,
"**/*.defaults": true,
"**/*.dg1": true,
"**/*.dll": true,
"**/*.doc*": true,
"**/*.exe": true,
"**/*.glo": true,
"**/*.glsdefs": true,
"**/*.gsb": true,
"**/*.ipynb": false,
"**/*.isi*": true,
"**/*.ist": true,
"**/*.lof": true,
"**/*.lot": true,
"**/*.mod": true,
"**/*.out": true,
"**/*.pdf": true,
"**/*.pem": true,
"**/*.pkl": true,
"**/*.png": true,
"**/*.pyd": true,
"**/*.scd": true,
"**/*.spec": true,
"**/*.stl": true,
"**/*.sublime-project": true,
"**/*.sublime-workspace": true,
"**/*.tmp": true,
"**/*.vtp": true,
"**/*.wproject": true,
"**/*.xls*": true,
"**/*.zip": true,
"**/build": true,
"**/CVS": true,
"**/dev.rmspci.*": true,
"**/dhodist": true,
"**/dist": true,
"**/error_file": true,
"**/*.egg-info": true
},
"files.trimTrailingWhitespace": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/build": true,
"**/CVS": true,
"**/dev.rmspci.*": true,
"**/dhodist": true,
"**/dist": true,
},
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.forceDownload": false,
"sync.askGistName": false,
"sync.gist": "4dcf558bb0784e21aa90e35f1f9b9c75",
"insertDateString.format": "DD-MM-YYYY",
"workbench.startupEditor": "welcomePage",
"editor.autoIndent": true,
"editor.detectIndentation": true,
"editor.formatOnPaste": true,
"problems.decorations.enabled": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true,
"explorer.confirmDelete": false,
"workbench.sideBar.location": "left",
"window.openFilesInNewWindow": "off",
"window.openFoldersInNewWindow": "on",
"window.zoomLevel": -1,
"explorer.confirmDragAndDrop": false,
"editor.quickSuggestions": true,
"editor.tabCompletion": "on",
"path-autocomplete.pathMappings": {
"./": "${workspace}",
},
"path-autocomplete.triggerOutsideStrings": true,
"path-autocomplete.extensionOnImport": true,
// LATEX SETTINGS
"latex-workshop.latex.autoBuild.run": "never",
"[bibtex]": {
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.formatOnPaste": false,
},
"[latex]": {
"editor.rulers": [
80
],
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.formatOnPaste": false,
"editor.tabSize": 2,
"editor.wordWrapColumn": 80,
"editor.wordWrap": "wordWrapColumn",
"editor.snippetSuggestions": "top",
"editor.quickSuggestions": false,
"editor.tabCompletion": "onlySnippets",
"editor.letterSpacing": 0,
"editor.lineHeight": 20,
},
"latex-workshop.latex.recipes": [
{
"name": "texify",
"tools": [
"texify"
]
}
],
"latex-workshop.latex.tools": [
{
"name": "texify",
"command": "texify",
"args": [
"-b",
"-p",
"--engine=xetex",
"--synctex",
"--pdf",
"--tex-option=\"-interaction=nonstopmode\"",
"--tex-option=\"-file-line-error\"",
"--tex-option=\"--shell-escape\"",
"%DOC%.tex"
]
},
],
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": "cmd.exe",
"latex-workshop.view.pdf.external.viewer.args": [
"/k",
"start",
"SumatraPDF",
"%PDF%",
],
"latex-workshop.view.pdf.external.synctex.command": "SumatraPDF",
"latex-workshop.view.pdf.external.synctex.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"%PDF%",
],
"latex-workshop.message.update.show": false,
"editor.minimap.maxColumn": 60,
"editor.minimap.showSlider": "always",
"spellright.notificationClass": "information",
"editor.formatOnSave": true,
"workbench.settings.editor": "ui",
"explorer.sortOrder": "type",
"material-icon-theme.showWelcomeMessage": false,
"latex-workshop.bind.enter.key": false,
"latex-workshop.latex.autoClean.run": "onFailed",
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.view.pdf.hand": true,
"code-runner.runInTerminal": true,
"workbench.colorCustomizations": {},
"material-icon-theme.folders.theme": "classic",
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"python.disableInstallationCheck": true,
"gitlens.blame.separateLines": false,
"gitlens.advanced.blame.delayAfterEdit": 0,
"python.dataScience.askForKernelRestart": false,
"code-runner.clearPreviousOutput": true,
"gitlens.views.repositories.files.layout": "list",
"gitlens.views.lineHistory.enabled": false,
"gitlens.views.search.enabled": false,
"gitlens.views.compare.enabled": true,
"gitlens.views.fileHistory.enabled": true,
"vsicons.dontShowNewVersionMessage": true,
"sync.forceUpload": true,
"editor.suggestSelection": "first",
"C_Cpp.updateChannel": "Default",
// DEV SPECIFIC PARS
"cmake.ctest.parallelJobs": 12,
"cmake.parallelJobs": 8,
"cmake.configureOnOpen": true,
"cmake.autoRestartBuild": true,
"cmake.revealLog": "focus",
"cmake.debugConfig": {
"cwd": "${workspaceFolder}\\build"
},
"cmake.testEnvironment": {
"cwd": "${workspaceFolder}\\build"
},
"extensions.ignoreRecommendations": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--max-complexity=8",
"--max-line-length=90",
"--ignore=D400,E731,E402,W504,F841,W605,W503"
],
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
"--max-line-length=90",
"--ignore=D400,E731,E402,W504,F841,W605,W503"
],
"python.linting.enabled": true,
"[python]": {
"editor.rulers": [
90,
72
],
"editor.formatOnSave": true,
"editor.formatOnType": false,
},
"cpplint.lineLength": 90,
"cpplint.filters": [
"-build/header_guard",
"-legal/copyright"
],
"C_Cpp.errorSquiggles": "Enabled",
"[cpp]": {
"editor.rulers": [
90
],
"editor.formatOnSave": false,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"editor.tabSize": 4,
},
"editor.rulers": [
90
],
"restructuredtext.confPath": "${workspaceFolder}\\doc\\source",
"restructuredtext.linter.extraArgs": [
"--ignore D000",
"--ignore D001",
"--ignore D002",
"--ignore D004"
],
"[reStructuredText]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"editor.wordWrapColumn": 90,
"editor.wordWrap": true,
},
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestEnabled": true,
"files.associations": {
"*.for": "fortran_fixed-form",
"array": "cpp",
"atomic": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"string_view": "cpp",
"fstream": "cpp",
"functional": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"numeric": "cpp",
"optional": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"system_error": "cpp",
"thread": "cpp",
"type_traits": "cpp",
"tuple": "cpp",
"typeinfo": "cpp",
"utility": "cpp",
"valarray": "cpp",
"xutility": "cpp",
"set": "cpp",
"dense": "cpp",
"*.bsh": "shellscript",
"*.h": "cpp"
},
"C_Cpp.configurationWarnings": "Disabled",
"typescript.tsc.autoDetect": "off",
"taskExplorer.exclude": [
"**/.vscode-test/**",
"**/bin/**",
"**/build/**",
"**/CompiledOutput/**",
"**/dist/**",
"**/doc/**",
"**/ext/**",
"**/out/**",
"**/output/**",
"**/packages/**",
"**/release/**",
"**/releases/**",
"**/samples/**",
"**/sdks/**",
"**/static/**",
"**/target/**",
"**/test/**",
"**/third_party/**",
"**/vendor/**",
"/c:/GIT/rmsp/setup.py",
"/c:/GIT/rmsp/dashboard/package.json",
"/c:/GIT/rmsp/rms/package.json",
"/c:/GIT/rmsp/fortran/build.bat",
"/c:/GIT/rmsp/scripts/activate_vs2017.bat",
"/c:/GIT/rmsp/userdoc/dho/compile.bat",
"/c:/GIT/rmsp/fortran/deploy.bat",
"/c:/GIT/rmsp/scripts/activate_vs2019.bat",
"/c:/GIT/rmsp/scripts/all.bat"
],
"python.analysis.memory.keepLibraryLocalVariables": true,
"gitlens.views.repositories.location": "scm",
"autoDocstring.docstringFormat": "google",
"debug.internalConsoleOptions": "neverOpen",
"debug.openDebug": "openOnDebugBreak",
"doxdocgen.c.commentPrefix": "",
"doxdocgen.generic.briefTemplate": "",
"doxdocgen.generic.paramTemplate": "@param[in] {param} ",
// "python.pythonPath": "C:\\Users\\nayrm\\Miniconda3\\envs\\rmsp\\python.exe",
"terminal.external.windowsExec": "",
"terminal.external.linuxExec": "bash",
"editor.smoothScrolling": true,
"editor.cursorSmoothCaretAnimation": true,
"python.testing.autoTestDiscoverOnSaveEnabled": false,
"python.workspaceSymbols.rebuildOnFileSave": true,
"terminal.explorerKind": "external",
"latex-workshop.intellisense.package.enabled": true,
"latex-workshop.view.pdf.ref.viewer": "tabOrBrowser",
"python.autoComplete.addBrackets": true,
"python.jediMemoryLimit": -1,
"python.jediEnabled": false,
"python.linting.pylintEnabled": false,
"python.analysis.memory.keepLibraryAst": true,
"C_Cpp.default.cppStandard": "c++14",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.intelliSenseEngineFallback": "Enabled",
"workbench.colorTheme": "Sublime Material Theme - Dark",
"markdown.links.openLocation": "beside",
"taskExplorer.enableAnsiconForAnt": false,
"taskExplorer.enableApp-publisher": false,
"taskExplorer.enableBatch": false,
"taskExplorer.enableAnt": false,
"taskExplorer.enableBash": false,
"taskExplorer.enableGradle": false,
"taskExplorer.enableGrunt": false,
"taskExplorer.enableGulp": false,
"taskExplorer.enableMake": false,
"taskExplorer.enableNpm": false,
"taskExplorer.enableNsis": false,
"taskExplorer.enablePerl": false,
"taskExplorer.enablePowershell": false,
"taskExplorer.enablePython": false,
"taskExplorer.enableRuby": false,
"taskExplorer.enableSideBar": true,
"taskExplorer.enableExplorerView": false,
"taskExplorer.enableTsc": false,
"editor.fontSize": 15,
"python.analysis.cachingLevel": "None",
"python.analysis.logLevel": "Trace",
"cpplint.cpplintPath": "cpplint",
"python.experiments.enabled": false,
"python.testing.promptToConfigure": false,
"python.analysis.cacheFolderPath": "C:/Users/ryan.martin/.vscode",
"python.analysis.openFilesOnly": false,
"python.autoComplete.extraPaths": [
"tests"
]
}
{
// 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"
// }
}
{
// Place your snippets for latex 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:
"list": {
"prefix": "list",
"body": [
"\\begin{easylist}[${1:itemize}]",
" # $0",
"\\end{easylist}",
],
"description": "easylist"
},
"equ": {
"prefix": "equ",
"body": [
"\\begin{equation*}",
" $0",
"\\end{equation*}",
],
},
"zu": {
"prefix": "zu",
"body": [
"\\($1(\\textbf{u})\\)$0"
]
},
"bu": {
"prefix": "bu",
"body": [
"\\textbf{u}$0"
]
},
// Acronyms
"acn": {
"prefix": "acn",
"body": [
"\\newacronym{$1}{$1} {$2}"
]
},
"acf": {
"prefix": "acf",
"body": [
"$1 \\glsunset{$2}(\\gls{$2}) $0",
],
},
"glsn": {
"prefix": "glsn",
"body": [
"\\newglossaryentry{$1}",
"{",
"name={$2},",
"description={$3},",
"sort=$4",
"}$5",
],
},
"ac": {
"prefix": "ac",
"body": [
"\\gls{$0}"
]
},
"gl": {
"prefix": "gl",
"body": [
"\\gls{$0}"
]
},
// Figure stuff
"figu": {
"prefix": "figu",
"body": [
"\\begin{figure}",
" \\centering",
" \\includegraphics[width=$1\\textwidth]{$2}",
" \\caption{$3}",
"\\label{fig:$4}",
"\\end{figure} $0"
]
},
"subfig": {
"prefix": "subfig",
"body": [
"\\begin{figure}",
" \\centering",
" \\begin{subfigure}{0.48\\textwidth}",
" \\centering",
" \\caption{$1}",
" \\label{fig:$2}",
" \\includegraphics[width=\\textwidth]{$3}",
" \\end{subfigure}",
" \\begin{subfigure}{0.48\\textwidth}",
" \\centering",
" \\caption{$4}",
" \\label{fig:$5}",
" \\includegraphics[width=\\textwidth]{$6}",
" \\end{subfigure}",
" \\caption{$7}",
"\\label{fig:$8}",
"\\end{figure}"
]
},
"subtab": {
"prefix": "subtab",
"body": [
"\\begin{table}",
" \\centering",
" \\begin{subtable}[t]{0.48\\textwidth}",
" \\centering",
" \\caption{$1}",
" \\label{tab:$2}",
" \\resizebox{1\\width}{!}{\\input{$3}}",
" \\end{subtable}",
" \\hspace{\\fill}",
" \\begin{subtable}[t]{0.48\\textwidth}",
" \\centering",
" \\caption{$4}",
" \\label{tab:$5}",
" \\resizebox{1\\width}{!}{\\input{$6}}",
" \\end{subtable}",
" \\caption{$7}",
"\\label{tab:$8}",
"\\end{table}"
]
},
"fig.": {
"prefix": "fig.",
"body": [
"(Fig.~\\ref{$1})$0"
]
},
"figure": {
"prefix": "figure",
"body": [
"Figure~\\ref{$1}$0"
]
},
// Figure stuff
"tabu": {
"prefix": "tabu",
"body": [
"\\begin{table}",
" \\centering",
" \\caption{$1}",
" \\label{tab:$2}",
" \\resizebox{1\\width}{!}{\\input{$3}}",
"\\end{table} $0"
]
},
"tab.": {
"prefix": "tab.",
"body": [
"(Tab.~\\ref{$1})$0"
]
},
"table": {
"prefix": "table",
"body": [
"Table~\\ref{$1}$0"
]
},
"comment": {
"prefix": "comment",
"body": [
"\\cmnt{$1}$0"
]
},
"varwidth": {
"prefix": "varwidth",
"body": [
"\\begin{varwidth}[t]{0.92\\linewidth} $1 \\end{varwidth}"
]
}
}
{
/*
// Place your snippets for MagicPython 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"
}
*/
"Insert Code Author": {
"prefix": "codeauthor",
"body": [
".. codeauthor:: Ryan Martin - ${1:day}-${2:month}-2018",
],
"description": "Add a code author stamp"
},
"Long Docstring Template": {
"prefix": "ldoc",
"body": [
"\"\"\"",
"${1:What does this function do?}",
"",
"Parameters:",
"-----------",
" ${2:firstpar}: ${3:type}",
" ${4:Comments on this parameter}",
"",
"Returns:",
"--------",
" firstreturn: type",
" Comments on this return parameter",
"",
"Examples:",
"---------",
"",
"",
".. codeauthor:: Ryan Martin - ${date:DateTime_Ctrl_Shift_I}",
"\"\"\"",
],
"description": "Insert a long docstring template"
},
"Short Docstring Template": {
"prefix": "sdoc",
"body": [
"\"\"\"",
"${1:What does this function do?}",
"",
"Parameters:",
"-----------",
" ${2:firstpar}: ${3:type}",
" ${4:Comments on this parameter}",
"",
".. codeauthor:: Ryan Martin - ${date:DateTime_Ctrl_Shift_I}",
"\"\"\"",
],
"description": "Insert a short docstring template"
},
"Super Short Docstring Template": {
"prefix": "ssdoc",
"body": [
"\"\"\"",
"${1:What does this function do?}",
"",
".. codeauthor:: Ryan Martin - ${2:DateTime_Ctrl_Shift_I}",
"\"\"\"",
],
"description": "Insert a super short docstring template"
},
"Document Parameter": {
"prefix": "docpar",
"body": [
"${1:parname}: ${2:partype}",
" ${3:pardescription}",
"${4}"
],
"description": "Insert a parameter for the docstring"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment