質問編集履歴

1

補足追記

2019/09/27 02:32

投稿

makition
makition

スコア11

test CHANGED
File without changes
test CHANGED
@@ -48,17 +48,373 @@
48
48
 
49
49
  ### setting.jsonについて
50
50
 
51
- ![イメージ説明](7ff27f81e8b13ecc61f15bfc000d4dbc.png)
52
-
53
- ![イメージ説明](ba05a0e54dbba547305b184c741ea99b.png)
54
-
55
- ![イメージ説明](27dd7586d742e0a49a1fa0bf85600e9a.png)
56
-
57
- ![イメージ説明](1adee8199920ca46aa4fabdf41817451.png)
58
-
59
- ![イメージ説明](bcecea30ecfb6127a30e291eafb26cd6.png)
60
-
61
- ![イメジ説明](f8bc3bf356604a930a5ae33ba79fb880.png)
51
+ ```json
52
+
53
+ {
54
+
55
+ // ウィンドウ設定
56
+
57
+ "window.zoomLevel": -1, // 拡大率
58
+
59
+ "window.title": "${activeEditorShort}${separator}${rootName}",
60
+
61
+ // エディタ設定
62
+
63
+ "editor.codeLens": false,
64
+
65
+ "editor.lineHeight": 28,
66
+
67
+ // "editor.fontFamily": "Inconsolata-g",
68
+
69
+ // "editor.fontSize": 14,
70
+
71
+ "editor.fontFamily": "Hasklig, Consolas, 'Courier New', monospace",
72
+
73
+ "editor.fontLigatures": true,
74
+
75
+ "editor.fontSize": 15,
76
+
77
+ "editor.glyphMargin": true, // 行の左端に余白を作る
78
+
79
+ "editor.roundedSelection": true, // 選択範囲の角を丸める
80
+
81
+ "editor.quickSuggestions": {
82
+
83
+ "comments": false, // コメント内では無効
84
+
85
+ "other": true, // その他の場所で有効
86
+
87
+ "strings": true // 文字列内では有効
88
+
89
+ },
90
+
91
+ "editor.folding": true, // コードの折りたたみを許可
92
+
93
+ "editor.lineNumbers": "on",
94
+
95
+ "editor.minimap.enabled": true,
96
+
97
+ "editor.minimap.maxColumn": 40,
98
+
99
+ "editor.insertSpaces": true, // Tabキーで半角スペースを入力
100
+
101
+ "editor.renderIndentGuides": true, // インデントのガイドラインを表示
102
+
103
+ "editor.minimap.side": "right", // ミニマップを右に表示
104
+
105
+ "editor.autoIndent": false, // オートインデント
106
+
107
+ "editor.cursorStyle": "block",
108
+
109
+ "editor.cursorWidth": 3,
110
+
111
+ "editor.cursorSmoothCaretAnimation": true,
112
+
113
+ "editor.emptySelectionClipboard": true, // 選択範囲無しでのコピーを許可
114
+
115
+ "editor.links": true, // リンクをクリック可能に
116
+
117
+ "editor.matchBrackets": true, // 対応する括弧の強調表示をオンに
118
+
119
+ "editor.mouseWheelScrollSensitivity": 0.7, // マウスホイール回転の移動係数
120
+
121
+ //"editor.suggestFontSize": 24, // サジェストの文字サイズ
122
+
123
+ "editor.suggestLineHeight": 24, // サジェスト欄の行の高さ
124
+
125
+ "diffEditor.renderSideBySide": false, // Git の差分を行内に表示
126
+
127
+ "editor.colorDecorators": false, // カラーデコレーターを非表示
128
+
129
+ "editor.formatOnPaste": true, // ファイル保存時に自動でフォーマット
130
+
131
+ "editor.formatOnType": true, // 入力した行を自動でフォーマット
132
+
133
+ "editor.formatOnSave": true,
134
+
135
+ "editor.minimap.renderCharacters": false, // ミニマップの表示文字をブロックに変更
136
+
137
+ "editor.minimap.showSlider": "always", // 表示領域をミニマップで常にハイライト
138
+
139
+ "editor.multiCursorModifier": "ctrlCmd", // マウスでの複数選択時の修飾キーを変更
140
+
141
+ "editor.renderControlCharacters": true, // 制御文字を表示
142
+
143
+ "editor.renderLineHighlight": "all", // 選択行を行番号含めすべてハイライト
144
+
145
+ "editor.renderWhitespace": "all", // エディターの幅で折り返し
146
+
147
+ "editor.trimAutoWhitespace": false, // 改行時に空行のインデントを保持する
148
+
149
+ "editor.cursorBlinking": "smooth",
150
+
151
+ // ターミナル
152
+
153
+ "terminal.integrated.fontSize": 14,
154
+
155
+ // emmet
156
+
157
+ "emmet.showSuggestionsAsSnippets": true, // Emmet の候補を表示
158
+
159
+ "emmet.triggerExpansionOnTab": true, // TAB キーで Emmet を展開できるようにする
160
+
161
+ "emmet.variables": {
162
+
163
+ // Emmet で展開される HTML の言語を変更
164
+
165
+ "lang": "ja"
166
+
167
+ },
168
+
169
+ // ファイル設定
170
+
171
+ "explorer.confirmDelete": false, // ファイル削除時の確認を表示しない
172
+
173
+ "files.associations": {
174
+
175
+ "*.c": "c",
176
+
177
+ "*.cpp": "cpp",
178
+
179
+ "*.cs6": "csharp",
180
+
181
+ "*.cs7": "csharp"
182
+
183
+ },
184
+
185
+ "files.exclude": {
186
+
187
+ "**/*.map": true,
188
+
189
+ "**/node_modules": true,
190
+
191
+ "**/.classpath": true,
192
+
193
+ "**/.project": true,
194
+
195
+ "**/.settings": true,
196
+
197
+ "**/.factorypath": true
198
+
199
+ }, // ファイルの保存時に末尾を改行
200
+
201
+ "files.trimFinalNewlines": true, // ファイルの保存時に最終行以降をトリミング
202
+
203
+ "files.trimTrailingWhitespace": true, // ファイルの保存時に行末の空白をトリミング
204
+
205
+ "files.autoGuessEncoding": true, // 文字コードを自動判断
206
+
207
+ "files.autoSave": "afterDelay",
208
+
209
+ "files.autoSaveDelay": 1000,
210
+
211
+ "html.format.contentUnformatted": "pre, code, textarea, title, h1, h2, h3, h4, h5, h6, p", // タグ内の記述はフォーマットしない
212
+
213
+ "html.format.extraLiners": "", // head, body, /html タグの前に改行を入れない
214
+
215
+ "html.format.unformatted": null, // フレージング・コンテンツ(旧インライン要素のようなタグ)はフォーマットしない
216
+
217
+ "html.format.wrapLineLength": 0, // 行の文字数制限を無くし自動で改行させない
218
+
219
+ "search.exclude": {
220
+
221
+ // 検索対象外にするファイル設定( files.exclude のファイルも含む)
222
+
223
+ "**/tmp": true
224
+
225
+ },
226
+
227
+ //"window.openFoldersInNewWindow": "on", // 新規ワークスペースを別ウインドウで開く
228
+
229
+ "workbench.editor.showTabs": true, // アクティビティバー(左端)を非表示に
230
+
231
+ "workbench.editor.tabSizing": "shrink", // タブが多い場合,文字を非表示にしてもタブ表示を優先する
232
+
233
+ "workbench.statusBar.visible": true, // ステータスバー(下端)を表示
234
+
235
+ "workbench.sideBar.location": "left", // サイドバーを左に
236
+
237
+ "workbench.startupEditor": "none", // Welcome Page を表示しない
238
+
239
+ // クラッシュレポートを送信する
240
+
241
+ "telemetry.enableCrashReporter": true,
242
+
243
+ "telemetry.enableTelemetry": true,
244
+
245
+ // 拡張機能関連
246
+
247
+ "extensions.autoUpdate": true,
248
+
249
+ "extensions.ignoreRecommendations": false,
250
+
251
+ "C_Cpp.default.cppStandard": "c++14",
252
+
253
+ "C_Cpp.default.cStandard": "c11",
254
+
255
+ "terminal.explorerKind": "external",
256
+
257
+ "terminal.integrated.cursorStyle": "line",
258
+
259
+ "C_Cpp.clang_format_style": "file",
260
+
261
+ "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: K&R, IndentWidth: 4}",
262
+
263
+ // Whether to lint Python files.
264
+
265
+ "python.linting.enabled": true,
266
+
267
+ // Whether to lint Python files using pylint.
268
+
269
+ "python.linting.pylintEnabled": false,
270
+
271
+ "python.linting.flake8Enabled": true,
272
+
273
+ "python.linting.lintOnSave": true,
274
+
275
+ "python.linting.flake8Args": [
276
+
277
+ "--ignore=W293, W504, E501", // 空行に空白があるとWarningが出るW293はエディタのコード整形が引っかかるためOFF, +のオペレータのあとで改行すると引っかかるW504もOFF
278
+
279
+ ],
280
+
281
+ "python.formatting.provider": "autopep8",
282
+
283
+ "python.formatting.autopep8Args": [
284
+
285
+ "--aggressive",
286
+
287
+ "--aggressive",
288
+
289
+ "--max-line-length",
290
+
291
+ "160", // Pythonのmaxlength設定
292
+
293
+ ],
294
+
295
+ // 言語別設定
296
+
297
+ "[markdown]": {
298
+
299
+ "files.trimTrailingWhitespace": false, // Markdown のファイルは行末の空白をトリミングしない
300
+
301
+ // markdownでスニペットが表示されないのを回避
302
+
303
+ "editor.wordWrap": "on",
304
+
305
+ "editor.quickSuggestions": true,
306
+
307
+ "editor.snippetSuggestions": "top",
308
+
309
+ "editor.tabSize": 2,
310
+
311
+ "diffEditor.ignoreTrimWhitespace": true,
312
+
313
+ "files.trimFinalNewlines": false,
314
+
315
+ "editor.trimAutoWhitespace": false,
316
+
317
+ },
318
+
319
+ "markdown.preview.breaks": true,
320
+
321
+ // JavaScriptでのみ保存時フォーマットを有効化
322
+
323
+ "[javascript]": {
324
+
325
+ "editor.formatOnSave": true,
326
+
327
+ "editor.tabSize": 4
328
+
329
+ },
330
+
331
+ // prettierのシングルクォーテーションオプションをon
332
+
333
+ "prettier.singleQuote": true,
334
+
335
+ "prettier.disableLanguages": [
336
+
337
+ "vue",
338
+
339
+ "markdown",
340
+
341
+ ],
342
+
343
+ "[javascriptreact]": {
344
+
345
+ "editor.formatOnSave": true,
346
+
347
+ "editor.tabSize": 2
348
+
349
+ },
350
+
351
+ "[plaintext]": {
352
+
353
+ "files.insertFinalNewline": false
354
+
355
+ },
356
+
357
+ "[cpp]": {
358
+
359
+ "editor.quickSuggestions": true
360
+
361
+ },
362
+
363
+ "editor.acceptSuggestionOnEnter": "off",
364
+
365
+ "C_Cpp.intelliSenseEngineFallback": "Disabled",
366
+
367
+ "clang.executable": "clang++",
368
+
369
+ "clang.cxxflags": [
370
+
371
+ "-std=c++14"
372
+
373
+ ],
374
+
375
+ "clang.cflags": [
376
+
377
+ "-std=c11"
378
+
379
+ ],
380
+
381
+ "editor.snippetSuggestions": "inline",
382
+
383
+ "csharpfixformat.style.braces.onSameLine": false,
384
+
385
+ "csharp.format.enable": false,
386
+
387
+ "C_Cpp.autocomplete": "Disabled",
388
+
389
+ "path-intellisense.extensionOnImport": true,
390
+
391
+ "editor.detectIndentation": false,
392
+
393
+ "editor.suggestSelection": "first",
394
+
395
+ "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
396
+
397
+ "java.errors.incompleteClasspath.severity": "ignore",
398
+
399
+ "C_Cpp.updateChannel": "Insiders",
400
+
401
+ "workbench.colorTheme": "SynthWave '84",
402
+
403
+ "python.jediEnabled": false,
404
+
405
+ "editor.wordWrap": "on",
406
+
407
+ "files.insertFinalNewline": true,
408
+
409
+ "editor.scrollBeyondLastLine": true,
410
+
411
+ "workbench.iconTheme": "simple-icons",
412
+
413
+ "python.pythonPath": "/usr/local/opt/python/bin/python3.7",
414
+
415
+ }
416
+
417
+ ```
62
418
 
63
419
 
64
420
 
@@ -69,3 +425,25 @@
69
425
  - html用のフォーマッターとして何か記述すべきか、導入すべきか
70
426
 
71
427
  - キー入力でコード整形をするにも上記のようになってしまうし、保存時の整形で綺麗にしたい。
428
+
429
+
430
+
431
+ ### 拡張機能について
432
+
433
+ - Auto Close Tag
434
+
435
+ - Auto Rename Tag
436
+
437
+ - Beautify
438
+
439
+ - Bracket Pair Colorizer2
440
+
441
+ - indent rainbow
442
+
443
+ - Prettier
444
+
445
+ - Visual Studio IntelliCode
446
+
447
+
448
+
449
+ 他にも入れてますが、Pythonなどの関係が明らかになさそうなものはとりあえず省いてます。