gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 05:20:56 27 4
gpt4 key购买 nike

我正在尝试使用 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com