Skip to content

Commit 2db69fd

Browse files
committed
add vscode settings
1 parent 1e9ee83 commit 2db69fd

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

Diff for: .vscode/settings.json

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"typescript.tsdk": "./node_modules/typescript/lib",
3+
4+
"editor.fontFamily": "'Fira Code iScript', Consolas, 'Courier New', monospace",
5+
"editor.fontLigatures": true,
6+
7+
"editor.tokenColorCustomizations": {
8+
"textMateRules": [
9+
{
10+
"scope": [
11+
//following will be in italics (=Pacifico)
12+
"comment",
13+
// "entity.name.type.class", //class names
14+
"keyword", //import, export, return…
15+
"support.class.builtin.js", //String, Number, Boolean…, this, super
16+
"storage.modifier", //static keyword
17+
"storage.type.class.js", //class keyword
18+
"storage.type.function.js", // function keyword
19+
"storage.type.js", // Variable declarations
20+
"keyword.control.import.js", // Imports
21+
"keyword.control.from.js", // From-Keyword
22+
"entity.name.type.js", // new … Expression
23+
"keyword.control.flow.js", // await
24+
"keyword.control.conditional.js", // if
25+
"keyword.control.loop.js", // for
26+
"keyword.operator.new.js", // new
27+
],
28+
"settings": {
29+
"fontStyle": "italic",
30+
},
31+
},
32+
{
33+
"scope": [
34+
//following will be excluded from italics (My theme (Monokai dark) has some defaults I don't want to be in italics)
35+
"invalid",
36+
"keyword.operator",
37+
"constant.numeric.css",
38+
"keyword.other.unit.px.css",
39+
"constant.numeric.decimal.js",
40+
"constant.numeric.json",
41+
"entity.name.type.class.js"
42+
],
43+
"settings": {
44+
"fontStyle": "",
45+
},
46+
}
47+
]
48+
},
49+
50+
"files.exclude": {
51+
"dist/": true,
52+
"doc/": true,
53+
"node_modules/": true,
54+
"package/": true,
55+
},
56+
"alignment": {
57+
"operatorPadding": "right",
58+
"indentBase": "firstline",
59+
"surroundSpace": {
60+
"colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative.
61+
"assignment": [1, 1], // The same as above.
62+
"arrow": [1, 1], // The same as above.
63+
"comment": 2, // Special how much space to add between the trailing comment and the code.
64+
// If this value is negative, it means don't align the trailing comment.
65+
}
66+
},
67+
"editor.formatOnSave": false,
68+
"python.pythonPath": "python3",
69+
"eslint.validate": [
70+
"javascript",
71+
"typescript",
72+
],
73+
"cSpell.words": [
74+
"Wechaty",
75+
"appid",
76+
"huan",
77+
"ioscat",
78+
"ipad",
79+
"lijiarui",
80+
"logonoff",
81+
"padchat",
82+
"padplus",
83+
"pagepath",
84+
"qrcode",
85+
"removee",
86+
"thumbnailurl",
87+
"wechat",
88+
"weixin",
89+
"zixia"
90+
],
91+
}

0 commit comments

Comments
 (0)