1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 14:55:24 +02:00
tldr/pages/common/subl.md

25 lines
553 B
Markdown
Raw Normal View History

2018-09-22 11:40:15 +01:00
# subl
> Sublime Text editor.
2025-07-01 03:19:59 +00:00
> More information: <https://www.sublimetext.com/docs/command_line.html>.
2018-09-22 11:40:15 +01:00
- Open the current directory in Sublime Text:
2025-07-01 03:19:59 +00:00
`subl .`
2018-09-22 11:40:15 +01:00
- Open a file or directory in Sublime Text:
`subl {{path/to/file_or_directory}}`
2018-09-22 11:40:15 +01:00
2019-01-03 09:30:45 -06:00
- Open a file and jump to a specific line number:
`subl {{path/to/file}}:{{line_number}}`
2018-09-22 11:40:15 +01:00
- Open a file or directory in the currently open window:
2025-07-01 03:19:59 +00:00
`subl {{[-a|--add]}} {{path/to/file_or_directory}}`
2018-09-22 11:40:15 +01:00
- Open a file or directory in a new window:
2025-07-01 03:19:59 +00:00
`subl {{[-n|--new-window]}} {{path/to/file_or_directory}}`