本文介绍了如何在Linux的命令行中打开Sublime Text 2文件到选项卡,而不是新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有ST2设置,因此我可以执行'sublime file.txt',它将在ST2窗口中打开.但是,如何在当前打开的窗口的新标签页中打开它?

I have ST2 setup so that I can do 'sublime file.txt' and it will open in a ST2 window. But how can I make it open in a new tab in the currently open window?

推荐答案

尝试Sublime命令行帮助

Try Sublime command line help

subl-帮助 Sublime Text 2 Build 2217

subl --help Sublime Text 2 Build 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.

打开新窗口后,应根据默认行为在其中添加后续文件.

After you have opened a new window the subsequent files should be added there as per the default behavior.

这篇关于如何在Linux的命令行中打开Sublime Text 2文件到选项卡,而不是新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 04:51