I'd like to add a new (external) default editor for a file type in Visual Studio 2012. My editor (Notepad++) supports jumping directly to a specific line via programme arguments. Sadly the msdn reference doesn't mention any macro parameters to use the line (and character) offset in a given context (i.e. when double clicking a search result).
Is it possible to get the line and/or character offset in the Arguments field in Add Program?
Edit: Is there a way to access these open-events through extensions with information about the file, line and the chosen opening programme?
Use the File menu, then click Options. In the Options window, select Integrations. Use the "External Editor" drop-down menu, and choose the editor you want to set as your default. Click Save.
Install code in VS Code To do this, open up VS Code and type (command + shift + p) to open the command palette. From there, search for 'code' and select Shell Command: Install 'code' command in PATH. Quick tip: With this installed, you can also use the code . command.
Using $(ItemPath) -n$(CurLine)
as arguments did the work for me:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With