DEV Community

Md Abu Taher
Md Abu Taher

Posted on

VSCode Trick: Reset the Sidebar and Terminal Pane Size

Have you ever resized sidebar and terminal like this?
Imgur

After that, you either did not care or tried to manually resize it back, right? But did you ever feel you forgot actual size or did not have the satisfaction?
Imgur

Just double click the borders of the pane you want to resize.
Imgur

Same applies to extension or any other activity, where you want to see the full contents.
Imgur

That's it! It is now resized back to appropriate size based on the contents of the sidebar and viewport size.

Peace!

Top comments (5)

Collapse
 
mrwensveen profile image
Matthijs Wensveen

Neat! VSCode forgets the pane sizes when I disconnect and reconnect my 2nd monitor, because it's forced to move to the smaller laptop screen. I would like it to remember per-screen settings, but this helps a lot.

Collapse
 
anwar3606 profile image
Anwar Hossain

Although not what I'm looking for. VSCode should remember width for each panel. But this will also help for now

Collapse
 
samueltlg profile image
Samuel TLG

Nice, thanks!

Collapse
 
maryam_daftarian_d928830b profile image
Maryam Daftarian

you just made my day! thank you

Collapse
 
carlos_uribe_e564def362f9 profile image
Carlos Uribe

How did you add your primary side bar where you can see explorer past the terminal?