質問するログイン新規登録

回答編集履歴

1

jsonのコードの不要部分を削除 説明付与

2021/06/15 14:13

投稿

Crimson_Tide
Crimson_Tide

スコア509

answer CHANGED
@@ -4,9 +4,11 @@
4
4
 
5
5
  参考
6
6
  [VSCodeでさっくり作る快適な執筆環境。オススメ拡張機能3つ。|リョウ|note](https://note.com/ryryo/n/n0ca42c3901d0)
7
+ (説明追記)
8
+ 拡張機能をインストールすると、setting.jsonに "highlight.regexes": {の項目が追加されているので適宜修正します。
9
+
7
10
  ```json
8
- "settings": {
9
- "terminal.integrated.defaultProfile.windows": "Ubuntu (WSL)",
11
+ "highlight.regexes": { // (編集)修正しました
10
12
  "highlight.decorations": { "rangeBehavior": 3 },
11
13
  "highlight.regexFlags": "gi",
12
14
  "highlight.regexes": {
@@ -16,7 +18,7 @@
16
18
  "backgroundColor": "rgba(255, 0, 0, 0.5)",
17
19
  }
18
20
  ],
19
- "(\n# \S+|^# \S+)\s": {;
21
+ "(\n# \S+|^# \S+)\s": { // (編集)不要な;が入っていたので削除
20
22
  "regexFlags": "gi", // Flags used when building this regex
21
23
  "filterFileRegex": ".*\.txt",
22
24
  "decorations": [