Ide 1.8.19 which file at what location with which parameters defines the position of the editor window

I modified the preferences.txt file to match my wishes a longer time ago.
Now I wanted to do some readjustings. But it has strange results.

The file is located here
C:\Users\dipl-\AppData\Local\Arduino15\preferences.txt

Whenever I close the last instance of a *.ino-file the last accessd timestamp shows the point in time I closed this file.

I tried to modify this line inside the preference.txt
from

last.sketch.default.location=764,5,1400,1373,1058,0

to

last.sketch.default.location=770,5,1000,1000,1058,0

but as soon as I restart the IDE 1.8.19 the values are changed back to

last.sketch.default.location=680,320,1400,800,-1,0

where the heck does this come from?????
Which other line inside preferences.txt or which other file at what storing-location do I have to modify to make it work?

I also tried to modify these lines

editor.window.height.default=800
editor.window.height.min=290
editor.window.width.default=800
editor.window.width.min=800

with results that I don't understand.
The Sketch-Editor window-height / width changed but not to the values that I entered.
It seems that there are done some calculations that increase the numbers.

So what the heck does the IDE all in all to define the sketch-editor-window??

To me it seems like some numbers are scramble-calculated in a very hard to analyse way

best regards Stefan

Are you editing preferences.txt with the IDE open or closed ?

I have closed the IDE 1.8.19
after closing I modifyed to

last.sketch.default.location=1400,3,1100,1100,1000,0

then restarted IDE
IDE-editor window appears in a different size than
last.sketch.default.location=1400,3,1100,1100,1000,0

This means the IDE is taking some other numbers to define the window-size
From which line in preferences.txt or which other file does the IDE take these different numbers??

I use notepad++ to edit the preferences.txt file
notepad++ detects if a file is changed by another application and asks to reload

After closing the IDE the values are set to
last.sketch.default.location=680,320,1400,800,-1,0

I'm using a portable installation of the IDE 1.8.19

best regards Stefan

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.