Hello,
I have Arduino 2.3.4 running on MacOS 15.3.2 and a project with multiple .h files in tabs. I'd like to view 2 files simultaneously. Either side-by-side or different windows. How can I do this?
AI answer that did not work:
To "pop out" or detach a tab in Arduino IDE 2 on macOS, you can drag the tab from the tab bar and then release it to create a separate window.
Thanks,
Marcus
Hi @thegovernor . Arduino IDE does not have this functionality.
The Arduino IDE developers are tracking the task of enabling the functionality here:
opened 07:17PM - 13 Mar 22 UTC
type: enhancement
topic: code
### Describe the request
Allow splitting the editor into multiple panes.
🙂 It … is helpful to reference the contents of another file or section of the current file while working.
### Describe the current behavior
There is only a single editor pane.
🙁 You must scroll up and down through the file to reference the contents of another section of the current file.
🙁 You must switch back and forth between tabs in order to reference the contents of another file.
### Arduino IDE version
692f29f
### Operating system
All
### Operating system version
All
### Additional context
A split editor capability was accidentally introduced via a Theia dependency update, then removed (https://github.com/arduino/arduino-ide/pull/940) after it was found to be not fully functional (https://github.com/arduino/arduino-ide/issues/552).
---
The same feature is in VS Code by pressing Split Editor Right (COMMAND+\ on macOS).
#### Additional Reports
- https://github.com/arduino/arduino-ide/issues/909#issuecomment-1077953090
- https://github.com/arduino/arduino-ide/issues/909#issuecomment-1722462492
- https://forum.arduino.cc/t/split-for-ide-main-view/695920
- https://forum.arduino.cc/t/cant-create-a-split-view-edited/1023920
- https://forum.arduino.cc/t/split-and-desk-windows-modes-are-lost/1001269
- https://forum.arduino.cc/t/my-wishlist-and-must-haves/938821
- https://forum.arduino.cc/t/arduino-ide-2-0-x/1062676
- https://forum.arduino.cc/t/holy-maccaroni-many-thanks/1033178
- https://forum.arduino.cc/t/view-ino-cpp-and-h-tabs-simultaneously/1000105/3
- https://forum.arduino.cc/t/switch-between-output-and-serial-monitor-while-uploading/1047727
- https://forum.arduino.cc/t/local-remote-git-sketch-handling/1066737
- https://forum.arduino.cc/t/ide-2-1-1-changed-mouseover-functions-and-intellisense/1147729/10
- https://forum.arduino.cc/t/help-suggestion-for-the-ide/1175604
- https://forum.arduino.cc/t/wishes-for-the-future-ide-updates/1233981
- https://forum.arduino.cc/t/undocking-tabs-new-feature/1331666
### Issue checklist
- [X] I searched for previous requests in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the feature was still missing when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My request contains all necessary details
If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:
Maybe I am misunderstanding, but just open a second sketch by any of the many methods. If what you meant is two seperate processes, then from the terminal the following should work but it isn't for me right now and I am sure it did before.
open -n -a /Applications/'Arduino IDE.app'
@thegovernor wants to view/edit 2 separate files in the same sketch but opening the same sketch twice is not possible using File/Open
The obvious way to do this is to open the sketch in the IDE and the other file in a separate editor
Using Windows it is possible to view/edit multiple file in the same sketch as follows
Open the sketch in the IDE
Use File Explorer to navigate to the sketch folder
Right click on the .ino file
Select Open With and choose the IDE
A second instance of the IDE will open which allows viewing/editing of multiple files in the same sketch
Whether this is possible using MacOS or whether it is a good idea I don't know
I suspect you were using Arduino IDE 1.x at the time it was working for you. Arduino IDE 1.x allows multiple application instances (at least on Windows, I haven't checked on macOS), while 2.x does not.
YES, I just tried opening two of Arduino 1.x on my Mac, and it worked!
1 Like
Thanks for the clarification. I will try installing VS Code along side to view the files simultaneously.
Sincerely,
Marcus
1 Like