0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

vscode ファイル名のtab height調整

Last updated at Posted at 2023-02-08

デフォルトだと高すぎて貴重なスペースを無駄にしてしまう。
自分へのメモ的書いておく。

cssをいじれる拡張をインストール

メジャーなのがvscode-custom-cssだそうで、自分はなぜかうまくいかなくてCustom VSCode UI CSSにした。

vscode権限変更

自分の環境がubuntu。

sudo chown -R $(whoami) $(which code)
sudo chown -R $(whoami) /usr/share/code

tab height をいじるcssファイル作成

:root {
  --tab-height: 15px;
}

.editor-actions {
  height: var(--tab-height) !important;
  line-height: var(--tab-height) !important;
}

.tabs-container .tab {
  height: var(--tab-height) !important;
  line-height: var(--tab-height) !important;
}

.tabs-container .monaco-icon-label {
  height: var(--tab-height) !important;
  line-height: var(--tab-height) !important;
}

.tabs-container .monaco-icon-label:before {
  height: var(--tab-height) !important;
  line-height: var(--tab-height) !important;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title .monaco-scrollable-element {
    height: var(--tab-height) !important;
}

setting.jsonにて読み込む

 "customvscodeuicss.css": "/PATH_TO_YOUR_CSS_FILE/custom.css",

F1押して-> customvscodeuicss: Reload Configuration で更新

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?