Set preferred sizes for VS Code sidebars and panel using simple step numbers.
- Download or build the
.vsixfile - In VS Code, press
Ctrl+Shift+P - Type
Extensions: Install from VSIX... - Select the
.vsixfile
Or via command line:
code --install-extension vscode-panel-width-0.2.0.vsix- Clone the repository:
git clone https://github.com/yourusername/vscode-panel-width.git cd vscode-panel-width - Install dependencies:
npm install
- Package the extension:
npx vsce package --allow-missing-repository
- Install the generated
.vsixfile (see above)
- Open the project in VS Code
- Run
npm install - Press
F5to launch Extension Development Host
Use the Command Palette (Ctrl+Shift+P) and search for "Panel Width" commands.
| Command | Description |
|---|---|
Panel Width: Apply All Sizes |
Apply all configured sizes at once |
Panel Width: Apply Primary Sidebar Size |
Apply left sidebar size |
Panel Width: Apply Secondary Sidebar Size |
Apply right sidebar size |
Panel Width: Apply Panel Size |
Apply bottom panel size |
Panel Width: Set Primary Sidebar Size |
Set and apply left sidebar size |
Panel Width: Set Secondary Sidebar Size |
Set and apply right sidebar size |
Panel Width: Set Panel Size |
Set and apply bottom panel size |
Settings can be configured in VS Code Settings (Ctrl+,) under "Panel Width".
| Setting | Default | Description |
|---|---|---|
panelWidth.primarySidebar |
5 |
Size of left sidebar (1 = minimum) |
panelWidth.secondarySidebar |
8 |
Size of right sidebar (1 = minimum) |
panelWidth.panel |
5 |
Size of bottom panel (1 = minimum) |
1= minimum size2= minimum + 1 step3= minimum + 2 steps- etc.
Each step is approximately 60 pixels.
MIT