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で覚えておきたいもの

Last updated at Posted at 2023-05-23

エディターレイアウトを、三分割に分ける

参考:VSCode: よく使うレイアウト(画面分割)を一発で呼び出す

Macでoption+enterで分割させたかったので、
"key": "option+enter"
に変更したところ。うまく動かない。

"key": "alt+enter"
でいけました。

optionってaltのことなんですね。
ちなみに[ ]は既存で書いてあったので、そのままで [ と ] の中に書きました。
初心者だとそれさえも分からなかった。

[
{
"key": "alt+enter",
"command": "layoutEditorGroups",
"args": {
"orientation": 0,
"groups": [
{ "size": 0.7, "groups": [ {}, {} ] },
{ "size": 0.3 },
]
}
},
]

エディターを消すとレイアウトも消される。

参考:VSCode – エディターレイアウトを保存する
せっかく上記で設定したのに、エディターを消すとレイアウトも消されちゃう。

設定→検索
workbench.editor.closeEmptyGroupsをオフにする。

ファイルを複数開きたい→ファイルが閉じてしまう

参考:【VSCode】開いたファイルが勝手に閉じられてしまう現象の対処法

Workbench > Editor: Enable Previewをオフ(チェックを外す)にすればいい

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?