I am working on a project consisting of several components, which are separately opened in different Visual Studio Code instances, running on different displays. In order to set everything up more quickly on a day-to-day basis, I wrote a very small bash script, initializing all instances. The script contains multiple lines like this:
code <folder-path> --new-window
However, windows created this way have to be maximized manually, an effort, which I would also like to automatize. Is there any way to start a new Visual Code instance from terminal with a maximized window? I already checked the help-options, but there doesn't seem to be dedicated options for displaying the window.
https://github.com/jc00ke/move-to-next-monitor/blob/master/move-to-next-monitor
. You will find a lot on SE too, when you know some of the tools to use/search for eg. wmctrl. – Anders F. U. Kiær Dec 11 '21 at 03:14