我有 ST2 设置,因此我可以执行“sublime file.txt”,它将在 ST2 窗口中打开。但是我怎样才能让它在当前打开的窗口中的新选项卡中打开呢?
问问题
50311 次
4 回答
54
试试 Sublime 命令行帮助
subl --help 崇高文本 2 构建 2217
Usage: subl [arguments] [files] edit the given files
or: subl [arguments] [directories] open the given directories
or: subl [arguments] - edit stdin
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
-s or --stay: Keep the application activated after closing the file
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit
--wait is implied if reading from stdin. Use --stay to not switch back
to the terminal when a file is closed (only relevant if waiting for a file).
Filenames may be given a :line or :line:column suffix to open at a specific
location.
打开新窗口后,应按照默认行为将后续文件添加到那里。
于 2012-09-03T06:43:11.677 回答
30
这适用于 Ubuntu 12.04:
subl filename
或者
subl -n filename
(如果您希望它在单独的窗口中打开)
于 2013-04-25T06:16:58.673 回答
6
subl fileName
如果你想打开一个新文件,请使用
subl -n new_file_name
于 2017-02-11T05:04:14.037 回答
2
另一种选择是:打开文件。
[sublime index.html script.js styles.css]
打开一个文件夹 [ sublime folderName ]
于 2015-09-03T13:09:41.453 回答