Skip to content

Instantly share code, notes, and snippets.

@tooruu
Last active August 18, 2020 07:43
Show Gist options
  • Save tooruu/0bdb2106cfc9c03c3669ad1fc8629ab2 to your computer and use it in GitHub Desktop.
Save tooruu/0bdb2106cfc9c03c3669ad1fc8629ab2 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-13T17:42:07.907Z","extensionVersion":"v3.4.3"}
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "f6",
"command": "python.execInTerminal",
"when": "editorLangId == python || resourceExtname == .py"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "f5",
"command": "workbench.action.debug.run",
"when": "!inDebugMode"
},
{
"key": "f5",
"command": "workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "ctrl+f5",
"command": "-workbench.action.debug.run",
"when": "!inDebugMode"
},
{
"key": "shift+enter",
"command": "-python.execSelectionInTerminal",
"when": "editorTextFocus && !findInputFocussed && !python.datascience.ownsSelection && !replaceInputFocussed && editorLangId == 'python'"
},
{
"key": "shift+enter",
"command": "-python.datascience.execSelectionInteractive",
"when": "editorTextFocus && python.datascience.featureenabled && python.datascience.ownsSelection && !findInputFocussed && !replaceInputFocussed && editorLangId == 'python'"
},
{
"key": "shift+enter",
"command": "-python.datascience.runcurrentcelladvance",
"when": "editorTextFocus && python.datascience.featureenabled && python.datascience.hascodecells && !editorHasSelection"
},
{
"key": "f2",
"command": "sftp.upload.folder"
}
]
{
"workbench.startupEditor": "newUntitledFile",
"editor.insertSpaces": false,
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"editor.formatOnSave": true,
"editor.smoothScrolling": true,
"editor.formatOnPaste": false,
"css.lint.duplicateProperties": "warning",
"window.zoomLevel": 0,
"liveServer.settings.donotShowInfoMsg": true,
"explorer.confirmDragAndDrop": false,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"files.autoSave": "off",
"explorer.confirmDelete": false,
"files.trimFinalNewlines": false,
"files.trimTrailingWhitespace": true,
"files.autoGuessEncoding": false,
"files.encoding": "utf8",
"editor.mouseWheelZoom": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 120,
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": false,
"breadcrumbs.enabled": false,
"editor.foldingStrategy": "indentation",
"html.format.indentInnerHtml": true,
"window.title": "${dirty}${activeEditorShort}",
"python.pythonPath": "python",
"html.format.extraLiners": "style",
"C_Cpp.clang_format_path": "C:\\Program Files\\LLVM\\bin\\clang-format.exe",
"editor.tabSize": 3,
"C_Cpp.default.includePath": [
"${workspaceFolder}",
"${workspaceFolder}/include",
"${workspaceFolder}/..",
"${workspaceFolder}/../include"
],
"C_Cpp.default.intelliSenseMode": "clang-x64",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.default.cppStandard": "c++11",
"C_Cpp.default.browse.path": [
"${workspaceFolder}",
"${workspaceFolder}/include",
"${workspaceFolder}/..",
"${workspaceFolder}/../include"
],
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": false,
"search.useGlobalIgnoreFiles": true,
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"C_Cpp.clang_format_style": "{BasedOnStyle:LLVM,AccessModifierOffset:-4,AllowShortBlocksOnASingleLine:true,AllowShortCaseLabelsOnASingleLine:true,AllowShortFunctionsOnASingleLine:Empty,AllowShortLoopsOnASingleLine:true,AlwaysBreakTemplateDeclarations:Yes,AllowShortIfStatementsOnASingleLine:true,BraceWrapping:{AfterClass:false,AfterControlStatement:false,AfterEnum:false,AfterFunction:false,AfterNamespace:false,AfterObjCDeclaration:false,AfterStruct:false,AfterUnion:false,AfterExternBlock:false,BeforeCatch:false,BeforeElse:false,IndentBraces:false,SplitEmptyFunction:false,SplitEmptyRecord:false,SplitEmptyNamespace:false},BreakBeforeBinaryOperators:None,BreakBeforeBraces:Custom,BreakConstructorInitializers:AfterColon,BreakInheritanceList:AfterColon,ColumnLimit:0,CompactNamespaces:false,ConstructorInitializerAllOnOneLineOrOnePerLine:false,Cpp11BracedListStyle:true,IncludeBlocks:Merge,IndentPPDirectives:AfterHash,IndentWidth:3,IndentWrappedFunctionNames:false,JavaScriptQuotes:Leave,JavaScriptWrapImports:true,KeepEmptyLinesAtTheStartOfBlocks:true,MaxEmptyLinesToKeep:1,NamespaceIndentation:All,PointerAlignment:Left,SortIncludes:true,SpaceBeforeCpp11BracedList:true,SpaceBeforeCtorInitializerColon:false,SpaceBeforeInheritanceColon:false,SpaceBeforeParens:ControlStatements,SpaceBeforeRangeBasedForLoopColon:false,SpacesBeforeTrailingComments:1,Standard:Cpp11,TabWidth:3,UseTab:ForContinuationAndIndentation}",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.flake8Enabled": false,
"liveServer.settings.donotVerifyTags": true,
"python.analysis.openFilesOnly": true,
"python.autoComplete.addBrackets": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.linting.pylintArgs": [
"--disable=missing-docstring,mixed-indentation,bad-continuation,invalid-name,inconsistent-return-statements,missing-final-newline,line-too-long,wrong-import-order",
"--max-line-length=120"
],
"python.globalModuleInstallation": true,
"editor.minimap.maxColumn": 120,
"html.format.wrapLineLength": 120,
"C_Cpp.clang_format_fallbackStyle": "LLVM",
"mssql.format.keywordCasing": "uppercase",
"mssql.format.datatypeCasing": "lowercase",
"terminal.integrated.cursorStyle": "line",
"python.formatting.provider": "yapf",
"python.formatting.yapfArgs": [
"--style",
"{based_on_style:pep8,use_tabs:true,column_limit:120,continuation_align_style:fixed,continuation_indent_width:3,dedent_closing_brackets:true,indent_width:3,spaces_before_comment:1,blank_line_before_nested_class_or_def:false,blank_lines_around_top_level_definition:1}"
],
"workbench.iconTheme": "vscode-icons",
"sync.autoUpload": true,
"sync.syncExtensions": false,
"sync.removeExtensions": false,
"trailing-spaces.trimOnSave": true,
"editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"terminal.integrated.fontFamily": "Consolas, 'Courier New', monospace",
"sync.gist": "0bdb2106cfc9c03c3669ad1fc8629ab2",
"sync.quietSync": true,
"workbench.colorCustomizations": {
"statusBar.background": "#73098d",
"statusBar.noFolderBackground": "#73098d"
//"statusBar.debuggingBackground": "#263238"
},
"sync.forceUpload": true,
"sync.forceDownload": true,
"vsicons.dontShowNewVersionMessage": true,
"diffEditor.renderSideBySide": true,
"python.insidersChannel": "off",
"[javascript]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"eslint.options": {
"configFile": "~/.eslintrc"
},
"discord.workspaceElapsedTime": true,
"discord.lowerDetailsEditing": "Project: {workspace}",
"discord.lowerDetailsNotFound": "No project.",
"editor.rulers": [
90,
120
],
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"python.showStartPage": false,
"python.languageServer": "Pylance"
}
{
// $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.
"Default": {
"prefix": "int main",
"body": [
"#include <iostream>",
"",
"using namespace std;",
"",
"int main() {",
"\t$0",
"\treturn 0;",
"}"
],
"description": "Create default body"
},
"Repeat": {
"prefix": "int repeat",
"body": [
"#include <iostream>",
"",
"using namespace std;",
"",
"int main() {",
"\tint ok;",
"\tdo {",
"\t\t$0",
"\t\tcout << \"Press 1 to continue...\";",
"\t\tcin >> ok;",
"\t} while (ok == 1);",
"\treturn 0;",
"}"
],
"description": "Create default body with do while cycle"
}
}
{
// Place your snippets for python 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"
// }
"Time it": {
"prefix": "timeit",
"body": [
"from time import time as timeit",
"t1 = timeit()",
"${1:# Code here}",
"print(timeit() - t1)"
],
"description": "Measure time between a block of code"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment