yuuho.wiki

カオスの欠片を集めて知恵の泉を作る

ユーザ用ツール

サイト用ツール


tips:vscode:start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
tips:vscode:start [2021/11/18 00:39] – 作成 yuuhotips:vscode:start [2025/06/03 00:57] (現在) – [未整理メモ] yuuho
行 112: 行 112:
 <code javascript>"explorer.autoReveal": false</code> <code javascript>"explorer.autoReveal": false</code>
  
 +==== VSCode の強制リロード ====
 +
 +explorer の git color highlights が何故か反映されないときがあるので強制的に再起動したい。
 +
 +
 +linux なら ctrl alt h とかを割り当てとけばよいかと。
 +mac なら command r でも良さそう。
 +
 +when を設定するときは true で。
 ===== まとめ ===== ===== まとめ =====
  
行 171: 行 180:
 code --install-extension Gruntfuggly.activitusbar code --install-extension Gruntfuggly.activitusbar
 code --install-extension ms-vscode-remote.remote-ssh code --install-extension ms-vscode-remote.remote-ssh
 +
 +code --install-extension ms-vscode-remote.vscode-remote-extensionpack
 </file> </file>
  
 +vscode-remote-extensionpack には
 +  * remote-ssh
 +  * remote tunnel
 +  * dev containers
 +  * wsl
 +が含まれる
  
 ===== エラー解決 ===== ===== エラー解決 =====
   * ''Unable to watch for file changes in this large workspace. Please follow the instructions link to resolve this issue.''\\ ワークスペースにあるファイルの数が設定の上限に達したときのエラー\\ [[https://qiita.com/neuwell/items/c827c80673de0d787d41]]   * ''Unable to watch for file changes in this large workspace. Please follow the instructions link to resolve this issue.''\\ ワークスペースにあるファイルの数が設定の上限に達したときのエラー\\ [[https://qiita.com/neuwell/items/c827c80673de0d787d41]]
 +
 +====== 未整理メモ ======
 +
 +=== 非表示ファイルのカスタム ===
 +
 +''.git'' フォルダを表示したい。設定に以下を追加。
 +<code javascript>
 +    "files.exclude": {
 +        "": true,
 +        "**/.git": false
 +    }
 +</code>
 +
 +=== リモートのフォルダを直接コマンドで開く ===
 +
 +<code bash>
 +code --folder-uri=vscode-remote://ssh-remote+kamex/path/to/dir
 +</code>
 +
 +=== ワークスペースを簡単に見分けられるようにする ===
 +
 +  * workspace ごとにタイトルバー(title bar)の色を変えて、リモートなのか(どのサーバーなのか)、ローカルなのかを見分けやすいようにする。
 +  * ウィンドウのタイトルの個所に表示される文字を変える
 +
 +<code javascript hoge.code-workspace>
 +{
 +    "settings": {
 +        "window.title": "LOCAL",
 +        "workbench.colorCustomizations": {
 +            "titleBar.activeBackground" : "#4aa1c4",
 +            "titleBar.activeForeground" : "#003366",
 +            "titleBar.inactiveBackground" : "#4aa1c4",
 +            "titleBar.inactiveForeground" : "#003366",
 +        }
 +    }
 +}
 +</code>
 +
 +色のアイディア
 +  * 水色系 : 背景 #4aa1c4, 文字 #003366
 +  * 紫色系 : 背景 #663399, 文字 #e6e6ff
 +  * 橙色系 : 背景 #ffa500, 文字 #663300
 +
 +
  
tips/vscode/start.1637195978.txt.gz · 最終更新: 2021/11/18 00:39 by yuuho