Windows/VSCode.md
... ...
@@ -0,0 +1,266 @@
1
+[[_TOC_]]
2
+
3
+# ユーザー設定ファイルの保存場所
4
+- %AppData%/Code/User/
5
+
6
+## ユーザー設定
7
+- %AppData%/Code/User/settings.json
8
+- 1つのタブに相当するスペースの数
9
+ ```javascript
10
+ "editor.tabSize": 2,
11
+ ```
12
+
13
+- エディターで制御文字を表示する必要があるかどうかを制御します
14
+ ```javascript
15
+ "editor.renderControlCharacters": true,
16
+ ```
17
+
18
+- エディターで空白文字を表示する方法を制御します
19
+ ```javascript
20
+ "editor.renderWhitespace": "all",
21
+ ```
22
+
23
+- 自動整形(タイプ時, 貼り付け時, 保存時)
24
+ ```javascript
25
+ "editor.formatOnType": false,
26
+ "editor.formatOnPaste": false,
27
+ "editor.formatOnSave": true,
28
+ ```
29
+
30
+- 既定の文字セットエンコーディング
31
+ ```javascript
32
+ "files.encoding": "utf8bom",
33
+ ```
34
+
35
+- ファイルを開くときに文字セットエンコーディングを推測する
36
+ ```javascript
37
+ "files.autoGuessEncoding": true,
38
+ ```
39
+
40
+- 匿名関数の関数キーワードの後のスペース処理を定義します
41
+ ```javascript
42
+ "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
43
+ ```
44
+
45
+- pandoc .html output option template that you would like to use
46
+ ```javascript
47
+ "pandoc.htmlOptString": "-s -t html5 -c <CSSファイル名> --toc",
48
+ ```
49
+ - [GitHub:cognitom/paper-css](https://github.com/cognitom/paper-css)
50
+ - [Google Web Font](https://fonts.google.com/earlyaccess)
51
+
52
+- PlantUML エクスポート先フォルダ
53
+ ```javascript
54
+ "plantuml.exportOutDirName": ".",
55
+ ```
56
+
57
+- PlantUML エクスポートフォーマット
58
+ ```javascript
59
+ "plantuml.exportFormat": "svg",
60
+ ```
61
+
62
+- Markdown-lint
63
+ ```javascript
64
+ "markdownlint.config": {
65
+ "no-trailing-spaces": {
66
+ "br_spaces": 2
67
+ },
68
+ "line-length": false,
69
+ "no-inline-html": {
70
+ "allowed_elements": [
71
+ "div",
72
+ "span",
73
+ "section",
74
+ ]
75
+ },
76
+ },
77
+ ```
78
+
79
+## キー設定
80
+- %AppData%/Code/User/keybindings.json
81
+ ```javascript
82
+ [
83
+ { /* タスクの実行 */
84
+ "key": "shift+alt+t",
85
+ "command": "workbench.action.tasks.runTask"
86
+ },
87
+ { /* 再帰的に折りたたむ */
88
+ "key": "ctrl+shift+alt+[",
89
+ "command": "editor.foldRecursively",
90
+ "when": "editorTextFocus"
91
+ },
92
+ { /* 再帰的に展開する */
93
+ "key": "ctrl+shift+alt+]",
94
+ "command": "editor.unfoldRecursively",
95
+ "when": "editorTextFocus"
96
+ },
97
+ { /* 対応する括弧へジャンプ (ctrl+shift+]) */
98
+ "key": "ctrl+shift+oem_6",
99
+ "command": "editor.action.jumpToBracket",
100
+ "when": "editorTextFocus"
101
+ },
102
+ ]
103
+ ```
104
+
105
+# ワークスペース設定
106
+- 各フォルダの .vscode/
107
+
108
+## Perl用
109
+- .vscode/tasks.json
110
+ - 2.0.0
111
+ ```javascript
112
+ {
113
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
114
+ // for the documentation about the tasks.json format
115
+ "version": "2.0.0",
116
+ "presentation": {
117
+ "echo": true,
118
+ "reveal": "always",
119
+ "focus": true,
120
+ "panel": "shared"
121
+ },
122
+ "tasks": [
123
+ {
124
+ "label": "compile",
125
+ "type": "shell",
126
+ "group": "test",
127
+ "command": "perl -c ${file}",
128
+ "problemMatcher": []
129
+ },
130
+ {
131
+ "label": "build",
132
+ "type": "shell",
133
+ "group": {
134
+ "kind": "build",
135
+ "isDefault": true
136
+ },
137
+ "command": "perl build/build.pl",
138
+ "problemMatcher": []
139
+ }
140
+ ]
141
+ }
142
+ ```
143
+ - 0.1.0
144
+ ```javascript
145
+ {
146
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
147
+ // for the documentation about the tasks.json format
148
+ "version": "0.1.0",
149
+ "suppressTaskName": true,
150
+ "showOutput": "silent",
151
+ "tasks": [
152
+ {
153
+ "taskName": "compile",
154
+ "command": "perl",
155
+ "args": [
156
+ "-c",
157
+ "${file}"
158
+ ]
159
+ },
160
+ {
161
+ "taskName": "perltidy",
162
+ "command": "perltidy",
163
+ "args": [
164
+ "${file}"
165
+ ],
166
+ "isShellCommand": true
167
+ },
168
+ {
169
+ "taskName": "delete-bak",
170
+ "command": "del",
171
+ "args": [
172
+ "*.bak"
173
+ ],
174
+ "isShellCommand": true
175
+ }
176
+ ]
177
+ }
178
+ ```
179
+
180
+## 推奨拡張機能
181
+- .vscode/extensions.json
182
+ ```javascript
183
+ {
184
+ "recommendations": [
185
+ "donjayamanne.githistory",
186
+ "DotJoshJohnson.xml",
187
+ "DougFinke.vscode-pandoc",
188
+ "GrapeCity.gc-excelviewer",
189
+ "ionutvmi.reg",
190
+ "jebbs.plantuml",
191
+ "joelday.docthis",
192
+ "michelemelluso.code-beautifier",
193
+ "mortenhenriksen.perl-debug",
194
+ "ms-vscode.PowerShell",
195
+ "sfodje.perltidy",
196
+ ]
197
+ }
198
+ ```
199
+
200
+# メモ
201
+
202
+## 拡張機能の保存場所
203
+ ```
204
+ %UserProfile%/.vscode/extensions
205
+ ```
206
+
207
+## PowerShell プロファイル
208
+- 統合ターミナルとなる PowerShell のプロファイルのパス
209
+ ```
210
+ %UserProfile%/Documents/WindowsPowerShell/Microsoft.VSCode_profile.ps1
211
+ ```
212
+- 通常の PowerShell とプロファイルを共有
213
+ ```
214
+ cd %UserProfile%/Documents/WindowsPowerShell
215
+ mklink Microsoft.VSCode_profile.ps1 Microsoft.PowerShell_profile.ps1
216
+ ```
217
+
218
+## *.vsix のダウンロード
219
+- [Managing Extensions](https://code.visualstudio.com/docs/editor/extension-gallery)
220
+ - [Can I download an extension directly from the Marketplace?](https://code.visualstudio.com/docs/editor/extension-gallery#_can-i-download-an-extension-directly-from-the-marketplace)
221
+- ダウンロード URL
222
+ ```
223
+ https://marketplace.visualstudio.com/_apis/public/gallery/publishers/
224
+ ${publisher}/vsextensions/${extension}/${version}/vspackage
225
+ ```
226
+- ChangeLog URL
227
+ ```
228
+ https://marketplace.visualstudio.com/items/${publisher}.${extension}/changelog
229
+ ```
230
+
231
+# リンク
232
+- [Visual Studio Code](https://code.visualstudio.com/)
233
+ - [Updates](https://code.visualstudio.com/updates)
234
+ - [Tasks](https://code.visualstudio.com/docs/editor/tasks)
235
+ - [Key Bindings](https://code.visualstudio.com/docs/customization/keybindings)
236
+ - [File and Folder Icons in Visual Studio Code](https://code.visualstudio.com/blogs/2016/09/08/icon-themes)
237
+ - [Creating a Formatter Extension](https://code.visualstudio.com/blogs/2016/11/15/formatters-best-practices)
238
+
239
+- [Visual Studio Marketplace](https://marketplace.visualstudio.com/)
240
+ - [C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
241
+ - [C# for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)
242
+ - [Document This](https://marketplace.visualstudio.com/items?itemName=joelday.docthis)
243
+ - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
244
+ - [Excel Viewer](https://marketplace.visualstudio.com/items?itemName=GrapeCity.gc-excelviewer#overview) CSV/TSVのプレビュー
245
+ - [ExtendScript](https://marketplace.visualstudio.com/items?itemName=hennamann.jsx) Adobe ExtendScript (.jsx, .jsxinc)
246
+ - [Git History (git log)](https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory)
247
+ - [markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint)
248
+ - [Perl Debug](https://marketplace.visualstudio.com/items?itemName=mortenhenriksen.perl-debug)
249
+ - [perltidy](https://marketplace.visualstudio.com/items?itemName=sfodje.perltidy)
250
+ - [PlantUML](https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml)
251
+ - [PowerShell](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell)
252
+ - [REG](https://marketplace.visualstudio.com/items?itemName=ionutvmi.reg)
253
+ - [SVG Viewer](https://marketplace.visualstudio.com/items?itemName=cssho.vscode-svgviewer)
254
+ - [Scheme](https://marketplace.visualstudio.com/items?itemName=rebornix.scheme)
255
+ - [vscode-pandoc](https://marketplace.visualstudio.com/items?itemName=DougFinke.vscode-pandoc)
256
+ - [vscode-pdf](https://marketplace.visualstudio.com/items?itemName=tomoki1207.pdf)
257
+ - [XML Tools](https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml)
258
+
259
+- [GitHub:Microsoft/TypeScript](https://github.com/Microsoft/TypeScript)
260
+ - [JSDoc support in JavaScript](https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-in-JavaScript)
261
+
262
+- [Right click on Windows folder and open with Visual Studio Code - thisDaveJ](http://thisdavej.com/right-click-on-windows-folder-and-open-with-visual-studio-code/)
263
+
264
+- [Build an Amazing Markdown Editor Using Visual Studio Code and Pandoc - thisDaveJ](http://thisdavej.com/build-an-amazing-markdown-editor-using-visual-studio-code-and-pandoc/)
265
+
266
+- [Visual Studio Code always asking for git credentials - Stack Overflow](https://stackoverflow.com/questions/%33%34%34%30%30%32%37%32)
Windows/_Sidebar.md
... ...
@@ -6,4 +6,5 @@
6 6
- [[POPFile]]
7 7
- [[PowerShell]]
8 8
- [[RemoteAccess]]
9
+- [[VSCode]]
9 10
- [[Windows10]]