分组选择,例如scope = string, comment用于匹配字符串或备注 插件开发者可以自定义 scope 也可以选择复用 TextMate 内置的许多 scope ,包括 comment、constant、entity、invalid、keyword 等,完整列表请查阅 官网。 settings属性则用于设置该 token 的表现样式,支持foreground、background、bold、italic、underline 等样式属性。
window.showTextDocument(document); }; export const jumpToPossibleFiles = async ( current: string, relativeFiles: string[], isJumpToTestFile: boolean, createTestFileOption: CreateTestFileOption ) => { // 显示选择框,获取用户选择结果,注意这是异步操作 const select = await vscode.window.showQuickP...
"language": "json5", "scopeName": "source.json5", "path": "./syntaxes/json5.json" }] } 在语法配置文件./syntaxes/json5.json中按照 TextMate 的要求定义 Language Rule: { "scopeName": "source.json5", "fileTypes": ["json5"], "name": "JSON5", "patterns": [ { "include": "...
"no-obj-calls": 2,//不能调用内置的全局对象,比如Math() JSON() "no-octal": 2,//禁止使用八进制数字 "no-octal-escape": 2,//禁止使用八进制转义序列 "no-param-reassign": 2,//禁止给参数重新赋值 "no-path-concat": 0,//node中不能使用__dirname或__filename做路径拼接 "no-plusplus": 0...
"javascript.updateImportsOnFileMove.enabled":"always","[html]": {"editor.defaultFormatter":"vscode.html-language-features"},"[json]": {"editor.defaultFormatter":"vscode.json-language-features"},"[jsonc]": {"editor.defaultFormatter":"vscode.json-language-features"},"[javascript]": {"editor...
update file username. "fileheader.LastModifiedBy": "zhangfan", // 针对 [go] 语言,配置替代编辑器设置。 "[go]": { "editor.insertSpaces": false }, // 针对 [json] 语言,配置替代编辑器设置。 "[json]": { "editor.quickSuggestions": { "strings": true } }, // 针对 [makefile] 语言,配置...
分组选择,例如 scope = string, comment 用于匹配字符串或备注 插件开发者可以自定义 scope 也可以选择复用 TextMate 内置的许多 scope ,包括 comment、constant、entity、invalid、keyword 等,完整列表请查阅 官网。 settings 属性则用于设置该 token 的表现样式,支持foreground、background、bold、italic、underline 等样...
// 针对 [json] 语言,配置替代编辑器设置。 "[json]": { "editor.quickSuggestions": { "strings": true } }, // 针对 [makefile] 语言,配置替代编辑器设置。 "[makefile]": { "editor.insertSpaces": false }, // 针对 [markdown] 语言,配置替代编辑器设置。 "[markdown]": { "editor.wordWrap...
Run Preferences: Open Settings (JSON) command to open your settings.json file. Share all the settings with the go. or ["go"] or gopls prefixes.{ "go.toolsManagement.autoUpdate": true, "go.testFlags": ["-gcflags=all=-N -l"], "go.testOnSave": true }...
"no-invalid-this":true, "no-jquery-raw-elements":true, "no-misused-new":true, "no-non-null-assertion":true, "no-reference-import":true, "no-regex-spaces":true, "no-sparse-arrays":true, "no-unnecessary-class":true, "no-string-literal":true, ...