sublimetext3 - 使用命令行在行号处打开 sublime 文本文件

标签 sublimetext3 sublimetext

我正在尝试使用 sublime text 3 打开文件,我想用光标在具体行号处打开它。

我一直在查subl --help但我找不到混凝土线的选择。因此我只是使用:subl filename
有没有办法做到这一点?

最佳答案

您可以使用 :line在给定的行打开:

subl file.txt:345

在我的 sublime-text 3 版本中,subl --help确实给了我指示(最后一行):
subl --help
Sublime Text build 3143

Usage: sublime_text [arguments] [files]         edit the given files
   or: sublime_text [arguments] [directories]   open the given directories

Arguments:
  --project <project>: Load the given project
  --command <command>: Run the given command
  -n or --new-window:  Open a new window
  -a or --add:         Add folders to the current window
  -w or --wait:        Wait for the files to be closed before returning
  -b or --background:  Don't activate the application
  -h or --help:        Show help (this message) and exit
  -v or --version:     Show version and exit

Filenames may be given a :line or :line:column suffix to open at a specific location.

关于sublimetext3 - 使用命令行在行号处打开 sublime 文本文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48804648/

相关文章:

sublimetext3 - 文件路径在 sublime text 3 中完成

sublimetext - 有没有办法禁用(或至少清除)Sublime Text 3 中的查找/替换历史记录?

autocomplete - Sublime Text 2 有自动完成功能吗?

r - 在Sublime文字3 : independent help page中使用R

performance - SublimeText 光标在 mac 和 linux 中移动这么慢,为什么?

formatting - Sublime Text 3 总是使用制表符而不是空格来缩进

html - 为什么我的伪类没有被 Sublime Text 检测为有效语法?

sublimetext3 - 崇高文本 3 : How to enable ctrl key bindings in Vintage mode?

python-3.x - 在 Sublime REPL 中使用不同的 conda envs

sublimetext3 - 是否可以在 Sublime 中保存子折叠? Bufferscroll 似乎没有这样做