[program-l] Re: EdSharp Feature Request

  • From: Lubos Pintes <lubos.pintes@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Sat, 20 Oct 2012 13:01:50 +0200

This could already be possible. Quick look to EdSharp source code suggests, that you can use three arguments:

EdSharp filename line column
DÅa 16. 10. 2012 14:37 Kerneels Roos wrote / napÃsal(a):
Hi List.

This may be possible already:

Provide a command line optional parameter for EdSharp that accepts a line number and optionally a column position where the cursor will be positioned at after the file has been opened (if the file is not already open in EdSharp) or where the cursor will be placed in the already opened file.

For example, it would be used like this:

edsharp.exe MySourceCode.cs /lc 10,15
or
edsharp.exe /lc 10,15 MySourceCode.cs

which will open MySourceCode.cs in EdSharp (if it is not already open) and place the cursor at line 10, column 15 and give the window with the file focus, or if the file is already open, give the window containing the file focus and position the cursor accordingly.

Such a feature would allow you to open any file that is open in Visual Studio using EdSharp, and have the cursor at the same position as in the open editor window in Visual Studio. Thus, you could use EdSharp to edit code files that are displayed in the VS code editor with two simple keystrokes when you have defined EdSharp as an external tool.



** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: