arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.3k stars 390 forks source link

As a user I want to keep my current window size when opening a new sketch or example #1329

Open kittaakos opened 2 years ago

kittaakos commented 2 years ago

Describe the request

If I open a sketch and resize the window, stop IDE2, and start IDE2, then the window size is restored. All works as expected.

However, when I set my preferred window size and open an example, create a new sketch, etc., the default hard-coded window size will be used for the new window. It feels like the user has no control over the window size, and adjusting for every sketch is tedious.

I would like to tune this with an Arduino preference/setting. If this new setting is true, the window dimension of the current would be used for the new window instead of the default dimension.

Describe the current behavior

See the request above 👆 but in a nutshell, every new window has the default hard-coded size.

Arduino IDE version

Version: 2.0.0-rc9.2-nightly-20220817 Date: 2022-08-17T03:45:04.166Z CLI Version: git-snapshot [6e007379] Copyright © 2022 Arduino SA

Operating system

macOS

Operating system version

12.3.1

Additional context

Additional Reports

Issue checklist

VeloSteve commented 1 year ago

I don't see this as an enhancement. Maybe it is in some technical sense, but it is a bug to have an editor window open 255 characters wide by default. Almost no one programs like that, and this costs every user a few seconds every time a new, "Open Recent", or "Example" sketch is opened.

Even if the as-shipped default stays this wide, there should at least be a way to edit the default.

clarionut commented 1 year ago

I have the same issue in Arduino 2.2.1 in Ubuntu 18.04LTS with a 3840x1024 monitor. The interface remembers the window size of the last-closed sketch, but any subsequent ones (new or reopened) are over 280 columns wide. If we can't specify the default size in settings.json, the IDE could at least default to using the window size of the last-closed sketch.

sim404 commented 11 months ago

Recently moved from 1.8x to 221. On the whole better than platformio because its simple to use. But I agree with the issue creator 12+months ago, it is irritating to have to re-size every time. When please??