我已经在Linux中打开了atom编辑器窗口,我尝试从终端运行atom以打开另一个文件:
atom /path/to/new_file.txt
每当原子尝试打开新窗口时,即在打开新文件而不是在当前打开的原子编辑器中打开新选项卡时。如果已经打开原子窗口,是否有一种方法可以告诉原子(通过配置或其他方式)不打开新窗口?
atom -n false /path/to/new_file.txt
在哪里:
-n, --new-window Open a new window. [boolean]
atom --help
Atom Editor v0.80.0
Usage: atom [options] [file …]
Options:
-d, --dev Run in development mode. [boolean]
-f, --foreground Keep the browser process in the foreground. [boolean]
-h, --help Print this usage message. [boolean]
-l, --log-file Log all output to file. [string]
-n, --new-window Open a new window. [boolean]
-s, --spec-directory Set the spec directory (default: Atom’s spec directory). [string]
-t, --test Run the specified specs and exit with error code on failures. [boolean]
-v, --version Print the version. [boolean]
-w, --wait Wait for window to be closed before returning. [boolean]
Atom从目录中的
config.cson
文件加载配置设置%USERPROFILE%\.atom
。
但是,该--new-window
选项不是可配置选项之一。
源基本定制
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句