Search code examples
macosvisual-studio-codeiterm2

Can I click on a filename and line number in iterm2 to open that file in Visual Studio Code at the correct line number in OS X


When Iterm2 shows a file name and line number in Mac OS X, can I ⌘-click on the file and have it open in an already open window in Visual Studio Code and position the cursor at the correct line number.

Hold down ⌘ and hover to see the file and line number you are about to click

(Asking this question to document the solution)


Solution

  • It looks like you can just select "Open with editor..." in advanced settings > semantic history now

    iTerm 2 preferences pane