Plotting in the VSCode secondary side bar

Is it possible to put plots by default in the secondary side bar of VSCode? Ideally also have the side bar split vertically:

┌──────────────┳━━━━━━━┓
│              ┃       ┃
│              ┃ Plots ┃
│              ┃       ┃
│              ┣───────┫
│              ┃Console┃
│              ┃       ┃
│              ┃       ┃
│              ┃       ┃
│              ┃       ┃
└──────────────┻━━━━━━━┛
1 Like


This method does not guarantee that this state will be maintained by default every time you start up, but it can temporarily meet your needs. First, move the terminal to the editor area, then close the right sidebar. Drag the terminal in the editor area to the right, then drag the plots tab to the right to achieve a split screen on the right side.

Restarting VSCode will restore this state. :smiling_face_with_tear:

It is a bit weird but it works. Thank you!

1 Like

This is a quicker way to achieve that I think. Note if you have multiple terminals, you’ll instead click on the one you want in the list of terminals. I think if you click “lock group” it stays there on restart, not sure.

1 Like

I just tested that. If you lock the plots pane and the shell they will stay put even after the reset.

When you start Julia REPL afterwards it will always open in the secondary side panel so you still need to move it to the correct position and close the secondary side bar.

I made a special restart repl command that also applies my desired layout because it was so annoying to always drag things into the correct position again:

{
        "key": "ctrl+shift+j",
        "command": "runCommands",
        "args": {
            "commands": [
                "language-julia.restartREPL",
                "workbench.action.editorLayoutTwoRowsRight",
                "workbench.action.moveEditorToLastGroup",
            ]
        },
    },
1 Like