Quantcast
Channel: Go to line in Atom editor from command line - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Rodolfo Carvalho for Go to line in Atom editor from command line

$
0
0

Atom can open files and go to a specific line/column from the command line by appending :line_number or :line_number:column_number to the file name/path.

Examples:

atom README.md:58atom README.md:57:5atom myproject/Makefile:5:2

If the file is already open, it will move the cursor to the desired position.

If the column is omitted, it goes to the first column. If the line/column is greater than the number of lines in the file or columns in the line, it goes to the last line/column.


Viewing all articles
Browse latest Browse all 4

Trending Articles