Reputation: 2543
I build my project on the terminal using make. When I encounter some compile errors, the output indicates in which files there is an error. I can Ctrl-click the file names to open them (a feature of iTerm). However, this makes Visual Studio Code open a new window with that single file, instead of navigating to that file in the already open project window. Is there a way to change this?
There is an option window.openFilesInNewWindow
, but that only works for files opened within VS Code, not from Finder or other apps.
Upvotes: 3
Views: 1662
Reputation: 111
VSCode accepts -r or --reuse-window as a parameter to force opening a file in the active project window. If you can configure your iTerm feature and add this parameter, it should work as expected.
Reference : https://code.visualstudio.com/docs/editor/codebasics
Upvotes: 5