Skip to content

Instantly share code, notes, and snippets.

@TerensTare
Last active February 24, 2020 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TerensTare/d815a5b1911b9a19f864f6323073ffb8 to your computer and use it in GitHub Desktop.
Save TerensTare/d815a5b1911b9a19f864f6323073ffb8 to your computer and use it in GitHub Desktop.
{"lastUpload":"2020-02-24T18:03:14.573Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.0.29"
},
{
"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.3"
},
{
"metadata": {
"id": "3a15b5a7-be12-47e3-8445-88ee3eabc8b2",
"publisherId": "sumneko.lua",
"publisherDisplayName": "sumneko"
},
"name": "lua",
"publisher": "sumneko",
"version": "0.15.4"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "3.9.3"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.2.63072"
},
{
"metadata": {
"id": "e05d98bf-3735-4c1e-9fae-86ef0a52e19f",
"publisherId": "quicktype.quicktype",
"publisherDisplayName": "quicktype"
},
"name": "quicktype",
"publisher": "quicktype",
"version": "12.0.46"
},
{
"metadata": {
"id": "6df1a207-f7de-4011-a032-f8601625a880",
"publisherId": "vscode-snippet.snippet",
"publisherDisplayName": "vscode-snippet"
},
"name": "snippet",
"publisher": "vscode-snippet",
"version": "0.8.1"
},
{
"metadata": {
"id": "50134257-3dbb-4e6d-a67f-a7fd3632d86b",
"publisherId": "funkyremi.vscode-google-translate",
"publisherDisplayName": "funkyremi"
},
"name": "vscode-google-translate",
"publisher": "funkyremi",
"version": "1.4.2"
},
{
"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": "10.0.0"
},
{
"metadata": {
"id": "0661e679-8a32-433e-baeb-8980f53edb55",
"publisherId": "fabiospampinato.vscode-todo-plus",
"publisherDisplayName": "fabiospampinato"
},
"name": "vscode-todo-plus",
"publisher": "fabiospampinato",
"version": "4.14.1"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+s",
"command": "workbench.action.files.saveAs"
},
{
"key": "ctrl+shift+s",
"command": "-workbench.action.files.saveAs"
},
{
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "ctrl+k s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "alt+m",
"command": "workbench.action.toggleMaximizedPanel"
}
]
{
"workbench.sideBar.location": "left",
"editor.renderWhitespace": "boundary",
"breadcrumbs.enabled": true,
"editor.formatOnSave": true,
"editor.renderIndentGuides": false,
"editor.folding": true,
"editor.showFoldingControls": "always",
"editor.foldingStrategy": "auto",
"editor.minimap.enabled": true,
"extensions.ignoreRecommendations": true,
"terminal.integrated.shellArgs.windows": [ // for cmd
"/k",
"C:\\Windows\\System32\\cmd.exe"
],
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"files.autoSave": "off",
"terminal.integrated.cursorStyle": "line",
"window.menuBarVisibility": "default",
"C_Cpp.default.intelliSenseMode": "msvc-x64",
"[go]": {
"editor.insertSpaces": false,
"editor.formatOnSave": true
},
"editor.multiCursorModifier": "alt",
"editor.fontFamily": "Cascadia Code",
"terminal.integrated.fontFamily": "Cascadia Code",
"editor.fontLigatures": true,
"git.autofetch": true,
"window.zoomLevel": 1,
"powershell.powerShellExePath": "C:\\Program Files\\PowerShell\\6\\pwsh.exe",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"workbench.colorCustomizations": {
"editorCursor.foreground": "#1e90ff",
"terminalCursor.foreground": "#1e90ff",
"editorLineNumber.activeForeground": "#1e90ff"
},
"editor.renderControlCharacters": true,
"editor.mouseWheelZoom": true,
"files.associations": {
"*.ixx": "cpp"
},
"C_Cpp.vcpkg.enabled": true,
"C_Cpp.enhancedColorization": "Enabled",
"C_Cpp.errorSquiggles": "Enabled",
"C_Cpp.experimentalFeatures": "Enabled",
"C_Cpp.formatting": "Default",
"editor.fontSize": 16,
"workbench.enableExperiments": false,
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "material-icon-theme",
"typescript.disableAutomaticTypeAcquisition": true,
"extensions.autoUpdate": false,
"extensions.showRecommendationsOnlyOnDemand": true,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"npm.fetchOnlinePackageInfo": false,
"sync.gist": "d815a5b1911b9a19f864f6323073ffb8"
}
{
// Place your snippets for bat 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"
// }
"msvc compile": {
"prefix": "cl",
"body": "cl /EHsc $0${1:files}",
"description": "compile c++ files without includes"
},
"msvc include compile": {
"prefix": "clic",
"body": "cl /I INCLUDE /EHsc $0${1:files}",
"description": "compile c++ files with special includes"
},
"sdl_msvc": {
"prefix": "sdlcl",
"body": "cl /EHsc main.cpp /IE:\\thing\\cpp /link /LIBPATH:E:\\thing\\cpp\\mandelbrot_set\\lib\\x86 SDL2.lib SDL2main.lib /SUBSYSTEM:CONSOLE ",
"description": "sdl compile with msvc"
},
"Win32 MSVC": {
"prefix": "win32",
"body": "cl /W3 /O2 /EHsc /std:c++17 *.cpp /link /subsystem:windows user32.lib",
"description": "Win32 apps build command with MSVC from cmd."
}
}
{
// 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"
// }
"const char": {
"prefix": "cor",
"body": "const char $0;",
"description": "constant character"
},
"const char *": {
"prefix": "c*",
"body": "const char *$0",
"description": "constant character *"
},
"std::cout": {
"prefix": "scout",
"body": "std::cout <<$0${1:text};",
"description": "std::cout"
},
"std::endl": {
"prefix": "sendl",
"body": "std::endl",
"description": "std::endl",
},
"std::cout&&endl": {
"prefix": "scendl",
"body": "std::cout << $0${1:text} << std::endl;",
"description": "std::cout << std::endl"
},
"std::cin": {
"prefix": "scin",
"body": "std::cin >> $0${1:user input} ;",
"description": "std::cin"
},
"SetConsoleTextAttribute": {
"prefix": "scta",
"body": "SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), $0${1:colornumber}); // needs Windows.h included",
"description": "change text color"
},
"console background": {
"prefix": "bgtemplate",
"body": [
"void setconsolecolor(int textColor, int bgColor) {",
"SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), (textColor + (bgColor * 16)));",
"}"
],
"description": "background color handle template"
},
"color definition": {
"prefix": "colordef",
"body": [
"/*",
"#define BLACK 0",
"#define BLUE 1",
"#define GREEN 2",
"#define CYAN 3",
"#define RED 4",
"#define MAGENTA 5",
"#define BROWN 6",
"#define LIGHTGREY 7",
"#define DARKGREY 8",
"#define LIGHTBLUE 9",
"#define LIGHTGREEN 10",
"#define LIGHTCYAN 11",
"#define LIGHTRED 12",
"#define LIGHTMAGENTA 13",
"#define YELLOW 14",
"#define WHITE 15",
"#define BLINK 128",
"*/"
],
"description": "cheatsheet to text colors in Windows"
},
"ifndefend": {
"prefix": "ifdefend",
"body": [
"#ifndef ${1:${fileBasenameNoExtension}}_H",
"#define ${1:${fileBasenameNoExtension}}_H",
"$0",
"#endif //!${1:${fileBasenameNoExtension}}_H"
],
"description": "ifndef, define and endif"
},
"get_string_length": {
"prefix": "lenstr",
"body": [
"template <typename String, uint64_t Size> // needs string includes",
"unsigned int StrLength(String (&arr)[Size])",
"{",
"unsigned int count = 0;",
"while (count < Size && arr[count] != '')",
"{",
"count++;",
"}",
"return count;",
"}"
],
"description": "get the length of a string array"
},
"long double": {
"prefix": "ld",
"body": "long double $0",
"description": "long double shortcut"
},
"base header": {
"prefix": "header",
"body": [
"#ifndef ${1:${fileBasenameNoExtension}}_H",
"#define ${1:${fileBasenameNoExtension}}_H",
"",
"namespace tnt",
"{",
"$0",
"} // namespace tnt",
"",
"#endif //!${1:${fileBasenameNoExtension}}_H"
]
},
"base cpp header": {
"prefix": "headerpp",
"body": [
"#ifndef ${1:${fileBasenameNoExtension}}_HPP",
"#define ${1:${fileBasenameNoExtension}}_HPP",
"",
"namespace tnt",
"{",
"$0",
"} // namespace tnt",
"",
"#endif //!${1:${fileBasenameNoExtension}}_HPP"
]
},
"pvs_studio free license": {
"prefix": "pvs",
"body": [
"// This is an independent project of an individual developer. Dear PVS-Studio, please check it.",
"// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com"
],
"description": "comment that help you use PVS_Studio for free."
}
}
{
// Place your snippets for go 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"
// }
"new operator": {
"prefix": "nop",
"body": ["// NewOp$0${1:name} gives a new $0${1:name} operator.",
"func NewOp$0${1:name}() *Op$0${1:name} {",
"return &Op$0${1:name}{BaseNode{nil, make([]Node, )}}",
"}"
],
"description": "NewOp initializes a new operator."
}
}
{
// Place your snippets for lua 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"
// }
"function": {
"prefix": "func",
"body": [
"function $0()",
"end"
],
"description": "Function shortcut."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment