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?
我有ST2的设置,这样我就可以做" sublime file "了。它会在ST2窗口中打开。但是我怎么才能让它在当前打开的窗口中打开呢?
4 个解决方案
#1
48
Try Sublime command line help
试试崇高的命令行帮助
subl --help Sublime Text 2 Build 2217
subl——帮助升华文本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.
After you have opened a new window the subsequent files should be added there as per the default behavior.
打开新窗口后,应该按照默认行为在其中添加后续文件。
#2
24
This works on Ubuntu 12.04:
这适用于Ubuntu 12.04:
subl filename
or
或
subl -n filename
(if you want it to open in a seperate window)
subl -n文件名(如果您希望它在分离窗口中打开)
#3
3
subl fileName
and if you want to open a new file use
如果你想打开一个新的文件使用
subl -n new_file_name
#4
2
another option is: to open file.
另一个选择是:打开文件。
[sublime index.html script.js styles.css]
to open a folder [ sublime folderName ]
打开一个文件夹[崇高的折叠名]
#1
48
Try Sublime command line help
试试崇高的命令行帮助
subl --help Sublime Text 2 Build 2217
subl——帮助升华文本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.
After you have opened a new window the subsequent files should be added there as per the default behavior.
打开新窗口后,应该按照默认行为在其中添加后续文件。
#2
24
This works on Ubuntu 12.04:
这适用于Ubuntu 12.04:
subl filename
or
或
subl -n filename
(if you want it to open in a seperate window)
subl -n文件名(如果您希望它在分离窗口中打开)
#3
3
subl fileName
and if you want to open a new file use
如果你想打开一个新的文件使用
subl -n new_file_name
#4
2
another option is: to open file.
另一个选择是:打开文件。
[sublime index.html script.js styles.css]
to open a folder [ sublime folderName ]
打开一个文件夹[崇高的折叠名]