vs code: is it possible to fix the size of the editor windows - visual-studio-code

I have a dual screen setup and would like to have a fixed number of editor windows with a fixed size open to avoid that an editor window bridges between two screens. VS code adapts editor windows automatically as they open and close.
I found a hint to .tab.sizing-fixed but I cannot find it in the settings (in 1.32). The "workbench.editor.tabSizing": "shrink" seems to handle only the sizing of the tabs, not the editor window.

centered layout auto resize off, if that would work

Related

How to align VS code terminal in bottom [duplicate]

Is there a way to make terminal span the entire width of the application without closing the sidenav? I use it quite a bit, and often I have to hide the sidenav in order to see it in full width. It would be great if I could set it up so the sidenav is just alongside the editor, allowing terminal to take up the full width of the application.
This is in Stable v1.64 now.
Go to View/Appearance/Align Panel/Justify or use the Layout Control icon on the upper right mentioned below.
Other options for the Panel alignment are center/left/right.
Note that that the Layout icon on the upper right was recently added with this setting:
Workbench > Layout Control: Enabled
Also, as of v1.75 this can be done via the context menu for the Panel. Right-click on an open space of the Panel to the right of the View headers to open the context menu:
See Release Notes: Manage Panel Alignment
It's already available since version 1.64.
Let's switch to Justify option.
**Unfortunately, it is not possible at the moment.
There is a ticket for this feature in the VSCode repository - https://github.com/microsoft/vscode/issues/42149
UPDATE:
It's already available since version 1.64.
See other answers below for more information

VSCode: Individual zoom levels for each open VSCode window (Multiple monitor setup with vertical monitor)

I have a 2 monitor setup. One monitor I have setup as vertical as it's easier to read through long code.
The way I have VSCode setup, is that I have 2 separate VSCode windows open for the same workspace (by pressing CTRL + K, then O). One window on the regular monitor, and one for the vertical one. All works fine.
However the issue that I have, is that on the vertical monitor, due to the aspect ratio, the font size of VSCode is too big so I have to zoom out a bit with the built in VSCode zoom function (CTRL +/-). This works fine and I can adjust it so it's perfectly readable. Unfortunately when I zoom, it zooms on all open VSCode windows, including the window on my main monitor. The text there then becomes too small.
How can I have individual zoom levels for each open VSCode window?
There is a setting Editor: Mouse Wheel Zoom. If you turn this on you can zoom with the Ctrl key and mouse scroll wheel, and it only affects the code editors in the current VSCode window.
Dude I am planning to buy a monitor and placing it Vertically so that's why I am confirming how to see the code in the vertical format. Like I use ESLint to prettify my code and I want to set the width of my code to de static so that it should not exceed.
AND on to your problem, there is a setting in VS code to set the font of your code changes with the scroll you should use that.
That will be the bare minimum to work.
Hope this helped.
Short Answer
ctrl + shift + p
type editor font...
Choose among the three options.
This gives us individual editor font zoom levels per workspace window.
Longer Answer
The original question has two bits:
"have 2 separate VSCode windows open for the same workspace",
"individual zoom levels for each open VSCode window?"
While VSCode doesn't support individual window zoom levels per workspace, it does support individual editor font zoom levels per workspace. That's what the short answer provides.
See https://github.com/microsoft/vscode/issues/72011

Is there a way to make the terminal in VSCode take up the entire width of the application even if the sidebar is open?

Is there a way to make terminal span the entire width of the application without closing the sidenav? I use it quite a bit, and often I have to hide the sidenav in order to see it in full width. It would be great if I could set it up so the sidenav is just alongside the editor, allowing terminal to take up the full width of the application.
This is in Stable v1.64 now.
Go to View/Appearance/Align Panel/Justify or use the Layout Control icon on the upper right mentioned below.
Other options for the Panel alignment are center/left/right.
Note that that the Layout icon on the upper right was recently added with this setting:
Workbench > Layout Control: Enabled
Also, as of v1.75 this can be done via the context menu for the Panel. Right-click on an open space of the Panel to the right of the View headers to open the context menu:
See Release Notes: Manage Panel Alignment
It's already available since version 1.64.
Let's switch to Justify option.
**Unfortunately, it is not possible at the moment.
There is a ticket for this feature in the VSCode repository - https://github.com/microsoft/vscode/issues/42149
UPDATE:
It's already available since version 1.64.
See other answers below for more information

VSCode: Not enough space to split terminal

In Visual Studio Code, there is a thing similar to command prompt in windows. It is called Terminal. In the past, I normally opened more than 3 tabs of this Terminal. However, in recent updates it displays this error when I try to open more than 3 tabs.
Not enough space to split terminal.
Is there a solution or a workaround for this?
Workaround:
Menu: View -> Appearance -> Toggle Panel Position (it moves terminals to the bottom) or right-click the "TERMINAL" or other tab and select "Move Panel to Bottom".
You can now open an additional terminal (or more) and then use the same menu option to move them back to the right and it will keep the additional terminals open.
There is a workaround - at least when You're using Ubuntu. You just have to unmaximize the window and resize it to make it bigger then Your screen size. Then You can split the terminal and can freely go back to initial window size.
Unfortunately, as far as I know, Windows won't allow You to have a window bigger that Your screen size. I don't know about Mac though.

Visual Studio Code tab width

Is there any way to set the maximum width for the tab in visual studio code. I can specify this in visual studio 2015 when I install productivity power tool, but I want to know if this is possible with visual studio code.
The only thing I was able to find while doing some quick research on VS Code User Guide was that in the Settings editor you can change the tabWidth either to shrink or to stay large enough to view the file name.
// Controls the sizing of editor tabs.
// - fit: Always keep tabs large enough to show the full editor label.
// - shrink: Allow tabs to get smaller when the available space is not enough to show all tabs at once.
"workbench.editor.tabSizing": "fit",
In VS Code you can access the editor's tab size settings by pressing Command+Comma (Mac) or Ctrl+Comma (PC), and typing tabsizing. You can edit settings for regular and pinned tabs.
Currently there are two options for sizing editor tabs: fit and shrink.
A handy shortcut is that the tab area recognizes a mouse scroll-wheel.
If you have Tab Sizing set to fit, and you have several tabs opened so that they scroll off the screen, hover your mouse pointer over a tab then scroll. This will bring more tabs into view.
It would be nice if Microsoft provided a means to stack tabs in Visual Studio Code.
2022 Update: VS Code now has a workbench setting named Wrap Tabs. To edit this press Command+Comma (Mac) or Ctrl+Comma (PC), type Wrap Tabs and check that box.
As lenooh pointed out, to have smaller tabs (what I came here for), better use
"workbench.editor.tabSizing": "shrink",