Skip to content

Instantly share code, notes, and snippets.

@craiglandis
Last active August 26, 2018 16:53
Show Gist options
  • Save craiglandis/0e58f8c5c444b89e7ef479be392d7639 to your computer and use it in GitHub Desktop.
Save craiglandis/0e58f8c5c444b89e7ef479be392d7639 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-26T16:52:20.125Z","extensionVersion":"v3.0.0"}
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.0.0"
},
{
"metadata": {
"id": "40d39ce9-c381-47a0-80c8-a6661f731eab",
"publisherId": "ms-vscode.PowerShell",
"publisherDisplayName": "ms-vscode"
},
"name": "PowerShell",
"publisher": "ms-vscode",
"version": "1.8.3"
}
]
// Place your key bindings in this file to overwrite the defaults
[
]
{
"editor.fontSize": 18,
"terminal.integrated.fontSize": 18,
"workbench.colorCustomizations": {
"terminal.foreground" : "#ffffff",
"terminal.background" : "#012456"
}
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"debug.openDebug": "neverOpen",
"window.zoomLevel": 1,
"editor.minimap.enabled": false,
"workbench.startupEditor": "newUntitledFile",
"sync.gist": "0e58f8c5c444b89e7ef479be392d7639",
"sync.lastUpload": "2018-03-11T22:32:59.637Z",
"sync.autoDownload": true,
"sync.autoUpload": false,
"sync.lastDownload": "2018-03-27T01:15:27.413Z",
"sync.forceDownload": true,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true
}
{
// Place your snippets for powershell 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"
// }
"arraylist" : {
"prefix": "arraylist",
"body": [
"$$myArray = New-Object System.Collections.ArrayList",
"[void]myArray.add($$item)"
],
"description": "arraylist snippet"
},
"stringbuilder" : {
"prefix": "stringbuilder",
"body": [
"$$stringBuilder = [System.Text.StringBuilder]::new()",
"[void]$$stringBuilder.Append('Was it a car ')",
"[void]$$stringBuilder.AppendLine('or a cat I saw?')",
"$$stringBuilder.ToString()"
],
"description": "stringbuilder snippet"
},
"objectfromhashtable" : {
"prefix": "objectfromhashtable",
"body": [
"$$object = [ordered]@{",
"\t'property1' = 'value1'",
"}",
"$$object = new-object -TypeName PSObject -Property $$object",
],
"description": "objectfromhashtable"
},
"comment-helpcustom1": {
"prefix": "comment-helpcustom1",
"body": [
"<#",
".SYNOPSIS",
"\tShort description",
".DESCRIPTION",
"\tLong description",
".PARAMETER parameter1",
"\tparameter1 description",
".EXAMPLE",
"\tPS C:\\> <example usage>",
"\tExplanation of what the example does",
".NOTES",
"\tGeneral notes",
"#>"
],
"description": "Comment-based help snippet custom 1"
},
}
{"ignoreUploadFiles":["projects.json","projects_cache_vscode.json","projects_cache_git.json","projects_cache_svn.json","gpm_projects.json","gpm-recentItems.json"],"ignoreUploadFolders":["workspaceStorage"],"replaceCodeSettings":{},"gistDescription":"Visual Studio Code Settings Sync Gist","version":290,"token":"6ceed8ae478e17a115a61cbc024de0bad1b56e79","downloadPublicGist":false,"supportedFileExtensions":["json","code-snippets"]}ceStorage"],"replaceCodeSettings":{},"gistDescription":"Visual Studio Code Settings Sync Gist","version":290,"token":"6ceed8ae478e17a115a61cbc024de0bad1b56e79","downloadPublicGist":false,"supportedFileExtensions":["json","code-snippets"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment