testup-2 icon indicating copy to clipboard operation
testup-2 copied to clipboard

Add knowledge of common editors

Open thomthom opened this issue 11 years ago • 1 comments

Allow for customized command syntax to fit each editor.

Add some knowledge of common editor to make it easier.

Sublime Text https://www.sublimetext.com/docs/command-line http://www.sublimetext.com/docs/2/osx_command_line.html

Notepad++ http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Command_Line_Switches

TextMate http://manual.macromates.com/en/using_textmate_from_terminal.html

Visual Studio http://stackoverflow.com/questions/350323/open-a-file-in-visual-studio-at-a-specific-line-number devenv /edit myfile.rb /command "edit.goto 5" C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE

Xcode http://stackoverflow.com/a/7973684/486990 xed --line 100 /Users/Anne/Desktop/Test/TestAppDelegate.m

VSCode https://stackoverflow.com/a/64117773/486990 Code.exe --goto "C:\file path\filename.txt:450:11" C:\Users\tthomas2\AppData\Local\Programs\Microsoft VS Code\Code.exe -goto "{FILE}:{LINE}" --reuse-window

thomthom avatar Jan 23 '14 21:01 thomthom

For reference (as I have to look this up anew myself every time I develop on a new machine), here is the config for Notepad++

C:/Program Files (x86)/Notepad++/notepad++.exe "{FILE}" -n{LINE}

Eneroth3 avatar Dec 09 '23 15:12 Eneroth3