json Visual Studio代码同步设置要点

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json Visual Studio代码同步设置要点相关的知识,希望对你有一定的参考价值。

{"version":"7.3.0","status":1,"welcomeShown":true}
/*
	// Place your snippets for JSON 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"
	}
*/

// ______________________________________________

// Configuracao do rules do stylelint, salvar esse json dentro de um arquivo 
// .stylelintrc na raiz do projeto

{
	"rules": {
		"at-rule-empty-line-before": ["always", {
			except: [
				"blockless-after-same-name-blockless",
				"first-nested",
			],
			ignore: ["after-comment"],
		}],
		"at-rule-name-case": "lower",
		"at-rule-name-space-after": "always-single-line",
		"at-rule-semicolon-newline-after": "always",
		"block-closing-brace-empty-line-before": "never",
		"block-closing-brace-newline-after": "always",
		"block-closing-brace-newline-before": "always-multi-line",
		"block-closing-brace-space-before": "always-single-line",
		"block-no-empty": true,
		"block-opening-brace-newline-after": "always-multi-line",
		"block-opening-brace-space-after": "always-single-line",
		"block-opening-brace-space-before": "always",
		"color-hex-case": "lower",
		"color-hex-length": "short",
		"color-no-invalid-hex": true,
		"comment-empty-line-before": ["always", {
			except: ["first-nested"],
			ignore: ["stylelint-commands"],
		}],
		"comment-no-empty": true,
		"comment-whitespace-inside": "always",
		"custom-property-empty-line-before": ["always", {
			except: [
				"after-custom-property",
				"first-nested",
			],
			ignore: [
				"after-comment",
				"inside-single-line-block",
			],
		}],
		"declaration-bang-space-after": "never",
		"declaration-bang-space-before": "always",
		"declaration-block-no-duplicate-properties": [true, {
			ignore: ["consecutive-duplicates-with-different-values"],
		}],
		"declaration-block-no-redundant-longhand-properties": true,
		"declaration-block-no-shorthand-property-overrides": true,
		"declaration-block-semicolon-newline-after": "always-multi-line",
		"declaration-block-semicolon-space-after": "always-single-line",
		"declaration-block-semicolon-space-before": "never",
		"declaration-block-single-line-max-declarations": 1,
		"declaration-block-trailing-semicolon": "always",
		"declaration-colon-newline-after": "always-multi-line",
		"declaration-colon-space-after": "always-single-line",
		"declaration-colon-space-before": "never",
		"declaration-empty-line-before": ["always", {
			except: [
				"after-declaration",
				"first-nested",
			],
			ignore: [
				"after-comment",
				"inside-single-line-block",
			],
		}],
		"font-family-no-duplicate-names": true,
		"function-calc-no-unspaced-operator": true,
		"function-comma-newline-after": "always-multi-line",
		"function-comma-space-after": "always-single-line",
		"function-comma-space-before": "never",
		"function-linear-gradient-no-nonstandard-direction": true,
		"function-max-empty-lines": 0,
		"function-name-case": "lower",
		"function-parentheses-newline-inside": "always-multi-line",
		"function-parentheses-space-inside": "never-single-line",
		"function-whitespace-after": "always",
		"indentation": 2,
		"keyframe-declaration-no-important": true,
		"length-zero-no-unit": true,
		"max-empty-lines": 1,
		"media-feature-colon-space-after": "always",
		"media-feature-colon-space-before": "never",
		"media-feature-name-case": "lower",
		"media-feature-name-no-unknown": true,
		"media-feature-parentheses-space-inside": "never",
		"media-feature-range-operator-space-after": "always",
		"media-feature-range-operator-space-before": "always",
		"media-query-list-comma-newline-after": "always-multi-line",
		"media-query-list-comma-space-after": "always-single-line",
		"media-query-list-comma-space-before": "never",
		"no-empty-source": true,
		"no-eol-whitespace": true,
		"no-extra-semicolons": true,
		"no-invalid-double-slash-comments": true,
		"no-missing-end-of-source-newline": true,
		"number-leading-zero": "always",
		"number-no-trailing-zeros": true,
		"property-case": "lower",
		"property-no-unknown": true,
		"rule-empty-line-before": ["always-multi-line", {
			except: ["first-nested"],
			ignore: ["after-comment"],
		}],
		"selector-attribute-brackets-space-inside": "never",
		"selector-attribute-operator-space-after": "never",
		"selector-attribute-operator-space-before": "never",
		"selector-combinator-space-after": "always",
		"selector-combinator-space-before": "always",
		"selector-descendant-combinator-no-non-space": true,
		"selector-list-comma-newline-after": "always",
		"selector-list-comma-space-before": "never",
		"selector-max-empty-lines": 0,
		"selector-pseudo-class-case": "lower",
		"selector-pseudo-class-no-unknown": true,
		"selector-pseudo-class-parentheses-space-inside": "never",
		"selector-pseudo-element-case": "lower",
		"selector-pseudo-element-colon-notation": "double",
		"selector-pseudo-element-no-unknown": true,
		"selector-type-case": "lower",
		"selector-type-no-unknown": true,
		"shorthand-property-no-redundant-values": true,
		"string-no-newline": true,
		"unit-case": "lower",
		"unit-no-unknown": true,
		"value-list-comma-newline-after": "always-multi-line",
		"value-list-comma-space-after": "always-single-line",
		"value-list-comma-space-before": "never",
		"value-list-max-empty-lines": 0,
	},
}


// ______________________________________________

{

	// Atalhos
	// selecionar classes iguais 
		// 	Ctrl+Shift+L - Select all occurrences of current selection
		// 	Ctrl+F2 Select all occurrences of current word

	// Ctrl+B - Esconder menu




/*
	 // Place your snippets for HTML 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"
	}
*/
}
{
    "window.menuBarVisibility": "toggle",
    "sync.gist": "ec003b5d8b420f15a89285491791b5cb",
    "sync.lastUpload": "2017-03-08T21:39:53.503Z",
    "sync.autoDownload": true,
    "sync.autoUpload": true,
    "sync.lastDownload": "",
    "sync.version": 251,
    "sync.showSummary": true,
    "sync.forceDownload": false,
    "sync.anonymousGist": false
}
{
	"window.menuBarVisibility": "toggle",
	"sync.gist": "ec003b5d8b420f15a89285491791b5cb",
	"sync.lastUpload": "",
	"sync.autoDownload": false,
	"sync.autoUpload": false,
	"sync.lastDownload": "2017-03-09T15:43:07.813Z",
	"sync.version": 251,
	"sync.showSummary": true,
	"sync.forceDownload": false,
	"sync.anonymousGist": false,
	"workbench.colorTheme": "Monokai",
	"workbench.iconTheme": "vs-seti",
	"vsicons.dontShowNewVersionMessage": true,
	"window.zoomLevel": 0,

	"files.trimTrailingWhitespace": false,
	"editor.tabSize": 2,
	"editor.rulers": [80],

	"files.exclude": {
		"**/.git": true,
		"**/.svn": true,
		"**/.hg": true,
		"**/CVS": true,
		"**/.DS_Store": true
	},
	"stylelint.enable": true,
	"css.validate": false,
	"scss.validate": false,
	"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
	"workbench.startupEditor": "newUntitledFile",
	"editor.insertSpaces": false,
	"editor.detectIndentation": false,
	"postcssSorting": {
		"order": [
			"custom-properties",
			"dollar-variables",
			"at-rules",
			"declarations",
			{
				"type": "at-rule",
				"name": "media"
			},
			"rules"
		],
		"properties-order": [{
				"emptyLineBefore": false,
				"properties": [
					"position",
					"z-index",
					"top",
					"right",
					"bottom",
					"left"
				]
			},
			{
				"emptyLineBefore": false,
				"properties": [
					"float",
					"display",
					"visibility",
					"clear",
					"overflow",
					"overflow-x",
					"overflow-y",
					"overflow-scrolling",
					"clip",
					"zoom",
					"flex-direction",
					"flex-order",
					"flex-pack",
					"flex-align"
				]
			},
			{
				"emptyLineBefore": false,
				"properties": [
					"box-sizing",
					"width",
					"min-width",
					"max-width",
					"height",
					"min-height",
					"max-height",
					"margin",
					"margin-top",
					"margin-right",
					"margin-bottom",
					"margin-left"
				]
			},
			{
				"emptyLineBefore": false,
				"properties": [
					"table-layout",
					"empty-cells",
					"caption-side",
					"border-spacing",
					"border-collapse",
					"list-style",
					"list-style-position",
					"list-style-type",
					"list-style-image"
				]
			},
			{
				"emptyLineBefore": false,
				"properties": [
					"font",
					"font-family",
					"font-weight",
					"font-style",
					"font-variant",
					"font-size-adjust",
					"font-stretch",
					"font-effect",
					"font-emphasize",
					"font-emphasize-position",
					"font-emphasize-style",
					"font-smooth",
					"line-height"
				],
				"unspecified-properties-position": "bottom"
			},
			{
				"emptyLineBefore": false,
				"properties": [
					"content",
					"quotes",
					"counter-reset",
					"counter-increment",
					"resize",
					"cursor",
					"user-select",
					"nav-index",
					"nav-up",
					"nav-right",
					"nav-down",
					"nav-left",
					"transition",
					"transition-delay",
					"transition-timing-function",
					"transition-duration",
					"transition-property",
					"transform",
					"transform-origin",
					"animation",
					"animation-name",
					"animation-duration",
					"animation-play-state",
					"animation-timing-function",
					"animation-delay",
					"animation-iteration-count",
					"animation-iteration-count",
					"animation-direction",
					"text-align-last",
					"vertical-align",
					"white-space",
					"text-decoration",
					"text-emphasis",
					"text-emphasis-color",
					"text-emphasis-style",
					"text-emphasis-position",
					"text-indent",
					"text-justify",
					"text-transform",
					"letter-spacing",
					"word-spacing",
					"writing-mode",
					"text-outline",
					"text-transform",
					"text-wrap",
					"text-overflow",
					"text-overflow-ellipsis",
					"text-overflow-mode",
					"word-wrap",
					"word-break",
					"tab-size",
					"hyphens",
					"pointer-events"
				]
			},
			{
				"emptyLineBefore": false,
				"properties": [
					"opacity",
					"interpolation-mode",
					"border",
					"border-collapse",
					"border-width",
					"border-style",
					"border-color",
					"border-top",
					"border-top-width",
					"border-top-style",
					"border-top-color",
					"border-right",
					"border-right-width",
					"border-right-style",
					"border-right-color",
					"border-bottom",
					"border-bottom-width",
					"border-bottom-style",
					"border-bottom-color",
					"border-left",
					"border-left-width",
					"border-left-style",
					"border-left-color",
					"border-radius",
					"border-top-left-radius",
					"border-top-right-radius",
					"border-bottom-right-radius",
					"border-bottom-left-radius",
					"border-image",
					"border-image-source",
					"border-image-slice",
					"border-image-width",
					"border-image-outset",
					"border-image-repeat",
					"padding",
					"padding-top",
					"padding-right",
					"padding-bottom",
					"padding-left",
					"font-size",
					"text-align",
					"color",
					"outline",
					"outline-width",
					"outline-style",
					"outline-color",
					"outline-offset",
					"background",
					"background-color",
					"background-image",
					"background-repeat",
					"background-attachment",
					"background-position",
					"background-position-x",
					"background-position-y",
					"background-clip",
					"background-origin",
					"background-size",
					"box-decoration-break",
					"box-shadow",
					"text-shadow"
				]
			}
		]
	},
	"git.enableSmartCommit": true
}
// Empty
// Place your key bindings in this file to overwrite the defaults
[{
		"key": "ctrl+shift+i",
		"command": "HookyQR.beautify",
		"when": "editorFocus"
	},

	{
		"key": "ctrl+d",
		"command": "editor.action.copyLinesDownAction",
		"when": "editorTextFocus"
	},
	{
		"key": "ctrl+shift+up",
		"command": "editor.action.moveLinesUpAction",
		"when": "editorTextFocus"
	},
	{
		"key": "ctrl+shift+down",
		"command": "editor.action.moveLinesDownAction",
		"when": "editorTextFocus"
	},
	// {
	// 	"key": "tab",
	// 	"command": "editor.action.indentLines",
	// 	"when": "editorTextFocus"
	// },
	{
		"key": "shift+tab",
		"command": "editor.action.outdentLines",
		"when": "editorTextFocus"
	},

	{
		"key": "ctrl+1",
		"command": "editor.action.addSelectionToNextFindMatch",
		"when": "editorTextFocus"
	}
]
[
    {
        "name": "aessoft-class-autocomplete",
        "publisher": "AESSoft",
        "version": "0.1.0",
        "id": "AESSoft.aessoft-class-autocomplete"
    },
    {
        "name": "csso",
        "publisher": "Aneryu",
        "version": "0.0.1",
        "id": "Aneryu.csso"
    },
    {
        "name": "react-native-react-redux",
        "publisher": "EQuimper",
        "version": "1.4.1",
        "id": "EQuimper.react-native-react-redux"
    },
    {
        "name": "beautify",
        "publisher": "HookyQR",
        "version": "1.1.1",
        "id": "HookyQR.beautify"
    },
    {
        "name": "minify",
        "publisher": "HookyQR",
        "version": "0.3.0",
        "id": "HookyQR.minify"
    },
    {
        "name": "start-git-bash",
        "publisher": "McCarter",
        "version": "1.2.1",
        "id": "McCarter.start-git-bash"
    },
    {
        "name": "vscode-extension-auto-import",
        "publisher": "NuclleaR",
        "version": "1.4.1",
        "id": "NuclleaR.vscode-extension-auto-import"
    },
    {
        "name": "nativescript",
        "publisher": "Telerik",
        "version": "0.7.2",
        "id": "Telerik.nativescript"
    },
    {
        "name": "html-css-class-completion",
        "publisher": "Zignd",
        "version": "1.14.0",
        "id": "Zignd.html-css-class-completion"
    },
    {
        "name": "html-snippets",
        "publisher": "abusaidm",
        "version": "0.1.0",
        "id": "abusaidm.html-snippets"
    },
    {
        "name": "project-manager",
        "publisher": "alefragnani",
        "version": "0.23.0",
        "id": "alefragnani.project-manager"
    },
    {
        "name": "Handlebars",
        "publisher": "andrejunges",
        "version": "0.2.0",
        "id": "andrejunges.Handlebars"
    },
    {
        "name": "alignment",
        "publisher": "annsk",
        "version": "0.3.0",
        "id": "annsk.alignment"
    },
    {
        "name": "vscode-refresh-html",
        "publisher": "bajdzis",
        "version": "0.0.2",
        "id": "bajdzis.vscode-refresh-html"
    },
    {
        "name": "theme-dark-monokai",
        "publisher": "bogdan-sinitsa",
        "version": "0.3.0",
        "id": "bogdan-sinitsa.theme-dark-monokai"
    },
    {
        "name": "imagepreview",
        "publisher": "buzzfrog",
        "version": "0.5.1",
        "id": "buzzfrog.imagepreview"
    },
    {
        "name": "vscode-exports-autocomplete",
        "publisher": "capaj",
        "version": "0.5.3",
        "id": "capaj.vscode-exports-autocomplete"
    },
    {
        "name": "handlebars-preview",
        "publisher": "chaliy",
        "version": "1.1.0",
        "id": "chaliy.handlebars-preview"
    },
    {
        "name": "npm-intellisense",
        "publisher": "christian-kohler",
        "version": "1.3.0",
        "id": "christian-kohler.npm-intellisense"
    },
    {
        "name": "open-html-in-browser",
        "publisher": "coderfee",
        "version": "0.1.21",
        "id": "coderfee.open-html-in-browser"
    },
    {
        "name": "gitignore",
        "publisher": "codezombiech",
        "version": "0.5.0",
        "id": "codezombiech.gitignore"
    },
    {
        "name": "jshint",
        "publisher": "dbaeumer",
        "version": "0.10.15",
        "id": "dbaeumer.jshint"
    },
    {
        "name": "vscode-eslint",
        "publisher": "dbaeumer",
        "version": "1.4.3",
        "id": "dbaeumer.vscode-eslint"
    },
    {
        "name": "vscode-hasher",
        "publisher": "deerawan",
        "version": "1.0.1",
        "id": "deerawan.vscode-hasher"
    },
    {
        "name": "vscode-whitespacer",
        "publisher": "deerawan",
        "version": "1.0.0",
        "id": "deerawan.vscode-whitespacer"
    },
    {
        "name": "react-redux-react-router-snippets",
        "publisher": "discountry",
        "version": "0.3.5",
        "id": "discountry.react-redux-react-router-snippets"
    },
    {
        "name": "bower",
        "publisher": "donjayamanne",
        "version": "0.0.3",
        "id": "donjayamanne.bower"
    },
    {
        "name": "git-extension-pack",
        "publisher": "donjayamanne",
        "version": "0.1.3",
        "id": "donjayamanne.git-extension-pack"
    },
    {
        "name": "githistory",
        "publisher": "donjayamanne",
        "version": "0.2.3",
        "id": "donjayamanne.githistory"
    },
    {
        "name": "jquerysnippets",
        "publisher": "donjayamanne",
        "version": "0.0.1",
        "id": "donjayamanne.jquerysnippets"
    },
    {
        "name": "vscode-html-css",
        "publisher": "ecmel",
        "version": "0.1.8",
        "id": "ecmel.vscode-html-css"
    },
    {
        "name": "tslint",
        "publisher": "eg2",
        "version": "1.0.21",
        "id": "eg2.tslint"
    },
    {
        "name": "windows-explorer-context-menu",
        "publisher": "electrotype",
        "version": "2.0.0",
        "id": "electrotype.windows-explorer-context-menu"
    },
    {
        "name": "auto-close-tag",
        "publisher": "formulahendry",
        "version": "0.5.3",
        "id": "formulahendry.auto-close-tag"
    },
    {
        "name": "auto-rename-tag",
        "publisher": "formulahendry",
        "version": "0.0.15",
        "id": "formulahendry.auto-rename-tag"
    },
    {
        "name": "referenceshelper",
        "publisher": "gayanhewa",
        "version": "0.2.1",
        "id": "gayanhewa.referenceshelper"
    },
    {
        "name": "sass-lint",
        "publisher": "glen-84",
        "version": "1.0.0",
        "id": "glen-84.sass-lint"
    },
    {
        "name": "css2inlinestyle",
        "publisher": "gpanneti",
        "version": "1.1.7",
        "id": "gpanneti.css2inlinestyle"
    },
    {
        "name": "live-html-previewer",
        "publisher": "hdg",
        "version": "0.3.0",
        "id": "hdg.live-html-previewer"
    },
    {
        "name": "vscode-import-formatter",
        "publisher": "henry-li",
        "version": "0.1.8",
        "id": "henry-li.vscode-import-formatter"
    },
    {
        "name": "ftp-simple",
        "publisher": "humy2833",
        "version": "0.5.8",
        "id": "humy2833.ftp-simple"
    },
    {
        "name": "icon-fonts",
        "publisher": "idleberg",
        "version": "1.8.2",
        "id": "idleberg.icon-fonts"
    },
    {
        "name": "path-autocomplete",
        "publisher": "ionutvmi",
        "version": "1.7.0",
        "id": "ionutvmi.path-autocomplete"
    },
    {
        "name": "code-file-nav",
        "publisher": "jakelucas",
        "version": "0.7.2",
        "id": "jakelucas.code-file-nav"
    },
    {
        "name": "relativepathrefactor",
        "publisher": "jakob101",
        "version": "0.9.0",
        "id": "jakob101.relativepathrefactor"
    },
    {
        "name": "Angular2",
        "publisher": "johnpapa",
        "version": "2.10.0",
        "id": "johnpapa.Angular2"
    },
    {
        "name": "node-module-intellisense",
        "publisher": "leizongmin",
        "version": "1.4.0",
        "id": "leizongmin.node-module-intellisense"
    },
    {
        "name": "vs-color-picker",
        "publisher": "lihui",
        "version": "0.7.0",
        "id": "lihui.vs-color-picker"
    },
    {
        "name": "font-awesome-codes-html",
        "publisher": "medzhidov",
        "version": "0.0.7",
        "id": "medzhidov.font-awesome-codes-html"
    },
    {
        "name": "vscode-extension-auto-import",
        "publisher": "moppitz",
        "version": "1.3.3",
        "id": "moppitz.vscode-extension-auto-import"
    },
    {
        "name": "vscode-attrs-sorter",
        "publisher": "mrmlnc",
        "version": "2.1.0",
        "id": "mrmlnc.vscode-attrs-sorter"
    },
    {
        "name": "vscode-postcss-sorting",
        "publisher": "mrmlnc",
        "version": "3.0.1",
        "id": "mrmlnc.vscode-postcss-sorting"
    },
    {
        "name": "syncing",
        "publisher": "nonoroazoro",
        "version": "1.4.9",
        "id": "nonoroazoro.syncing"
    },
    {
        "name": "advanced-new-file",
        "publisher": "patbenatar",
        "version": "0.5.1",
        "id": "patbenatar.advanced-new-file"
    },
    {
        "name": "vscode-css-peek",
        "publisher": "pranaygp",
        "version": "1.3.1",
        "id": "pranaygp.vscode-css-peek"
    },
    {
        "name": "vscode-icons",
        "publisher": "robertohuertasm",
        "version": "7.17.0",
        "id": "robertohuertasm.vscode-icons"
    },
    {
        "name": "sass-indented",
        "publisher": "robinbentley",
        "version": "1.4.5",
        "id": "robinbentley.sass-indented"
    },
    {
        "name": "vscode-sass-format",
        "publisher": "sasa",
        "version": "1.1.2",
        "id": "sasa.vscode-sass-format"
    },
    {
        "name": "trailing-spaces",
        "publisher": "shardulm94",
        "version": "0.2.11",
        "id": "shardulm94.trailing-spaces"
    },
    {
        "name": "stylelint",
        "publisher": "shinnn",
        "version": "0.30.0",
        "id": "shinnn.stylelint"
    },
    {
        "name": "react-beautify",
        "publisher": "taichi",
        "version": "0.3.0",
        "id": "taichi.react-beautify"
    },
    {
        "name": "vscode-gulp",
        "publisher": "tanato",
        "version": "0.0.4",
        "id": "tanato.vscode-gulp"
    },
    {
        "name": "autoend",
        "publisher": "thousandtyone",
        "version": "1.1.4",
        "id": "thousandtyone.autoend"
    },
    {
        "name": "bootstrap-3-snippets",
        "publisher": "wcwhitehead",
        "version": "0.1.0",
        "id": "wcwhitehead.bootstrap-3-snippets"
    },
    {
        "name": "vscode-js-console-utils",
        "publisher": "whtouche",
        "version": "0.7.0",
        "id": "whtouche.vscode-js-console-utils"
    },
    {
        "name": "nativescript-ng2-snippets",
        "publisher": "wwwalkerrun",
        "version": "2.0.1",
        "id": "wwwalkerrun.nativescript-ng2-snippets"
    },
    {
        "name": "JavaScriptSnippets",
        "publisher": "xabikos",
        "version": "1.5.0",
        "id": "xabikos.JavaScriptSnippets"
    },
    {
        "name": "vscode-open-in-github",
        "publisher": "ziyasal",
        "version": "1.2.9",
        "id": "ziyasal.vscode-open-in-github"
    }
]

以上是关于json Visual Studio代码同步设置要点的主要内容,如果未能解决你的问题,请参考以下文章

json Visual Studio代码设置同步要点

json Visual Studio代码设置同步要点

json Visual Studio代码设置同步要点

json Visual Studio代码设置同步要点

json Visual Studio代码设置同步要点

json Visual Studio代码同步设置要点