Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change or Add a Default Editor in Visual Studio

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?

AddProgrammeDialog

Edit: Is there a way to access these open-events through extensions with information about the file, line and the chosen opening programme?

like image 312
BeyelerStudios Avatar asked Dec 11 '15 13:12

BeyelerStudios


People also ask

How do I change my default code editor?

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.

How do I change the default text editor to VS Code?

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.


1 Answers

Using $(ItemPath) -n$(CurLine) as arguments did the work for me:

enter image description here

like image 185
Thomas Ayoub Avatar answered Oct 02 '22 03:10

Thomas Ayoub