Vscode: New windows should get the size of the previous active window

Created on 24 Aug 2016  路  7Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.4.0
  • OS Version: Win10

Steps to Reproduce:

  1. Open VSC and resize the window, e.g., make it a bit larger
  2. Open a new window by File => New Window or Ctrl + Shift + N

The new window has some pre-defined size. I would expect that it has the same size as the first one.

feature-request

Most helpful comment

A new setting window.newWindowDimensions allows to control how new windows should open. By default, a new window will open in the center of the screen with small dimensions. If you change this setting to inherit, the new window will get the same dimensions as the last active one. Setting it to maximized or fullscreen will always open new windows either maximized or in fullscreen.

All 7 comments

It's probably a personal preference. It should be a user setting instead of hard-coded.

+1. Need this as a preference setting option.

adding desc from #17105 to also include window position:

When I open a new window in VS Code (Ctrl/Cmd+Shift+N), the new window takes about 1/3 of the screen and I need to manually resize it to make it bigger. (On Windows this may not be a huge issue since there's the maximize button. But on a Mac, laborious manual resizing is needed to keep windows in the same space.)

Wanted behavior: The window is sized and positioned with the size and position taken from the last user-sized and the last user-positioned window.

Possible workaround if this is hard to implement: add an option to specify new default window size and an option to specify a new default window position, both in pixels.

On Windows this may not be a huge issue since there's the maximize button

It's still annoying having to perform extra steps.. I dislike this:

  1. Open a terminal, type "code ." to open code. It opens full-screen (how I left it)
  2. Open another terminal (or change to another folder) and type "code ." to open code. It opens in a small window

It's a little annoying that the window size is different depending on whether it's the first time you launch code or not!

I too find this annoying. I like keeping VS Code window at a certain position / size and have a browser window open next to it, but when I open a second project / window I have to manually resize it (or close the first window beforehand).

I think this should be saved somewhere in workspace settings or globally per folder.

A new setting window.newWindowDimensions allows to control how new windows should open. By default, a new window will open in the center of the screen with small dimensions. If you change this setting to inherit, the new window will get the same dimensions as the last active one. Setting it to maximized or fullscreen will always open new windows either maximized or in fullscreen.

Can I customize new window size?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sirius1024 picture sirius1024  路  3Comments

borekb picture borekb  路  3Comments

trstringer picture trstringer  路  3Comments

chrisdias picture chrisdias  路  3Comments

lukehoban picture lukehoban  路  3Comments