如何使用命令行在 Atom 中创建文件和文件夹?
How to create files and folder in Atom using the command line?
我在看一个关于 Atom 文本编辑器的快速工作流教程,看到那个人如何使用 Linu 命令,比如 ls
(检查目录中的文件),touch
(创建文件例如 style.css) 和 mkdir
(创建文件夹)。现在,在我的 Atom 编辑器中,我可以使用以下命令打开命令行。
CTRL + SHIFT + T
现在在我的命令行中打开默认的 windows 命令行,我可以使用 mkdir
创建文件夹,但是命令 touch
和 ls
不' 工作,这让我想知道 Atom 是否有自己的命令行?
查看 SCREENSHOT 以了解此人如何创建文件夹、文件和使用 ls 命令。
所以我的问题是,如何在 Atom 中创建文件?如何让 touch 命令起作用?
看起来教程使用的是 Term2 package for opening a shell within the editor (http://code.tutsplus.com/courses/speedy-workflows-with-atom/lessons/term2)。由于您似乎能够使用所描述的屏幕截图打开终端,因此您似乎已经安装了 Term2 软件包 - 到目前为止一切顺利。
此包在编辑器中打开标准命令 window。该教程似乎使用 Linux 或 Mac OS X 作为操作系统。如果您是 运行 Windows,您将只有 Windows CMD 解释器可用。
Windows 本身不支持 touch
命令(但它有一个 mkdir
命令)。有个unxtools project that provides some of the common Gnu tools. If you install that, you should be able to run touch
from the Windows command shell as well. More details can be found here.
我在看一个关于 Atom 文本编辑器的快速工作流教程,看到那个人如何使用 Linu 命令,比如 ls
(检查目录中的文件),touch
(创建文件例如 style.css) 和 mkdir
(创建文件夹)。现在,在我的 Atom 编辑器中,我可以使用以下命令打开命令行。
CTRL + SHIFT + T
现在在我的命令行中打开默认的 windows 命令行,我可以使用 mkdir
创建文件夹,但是命令 touch
和 ls
不' 工作,这让我想知道 Atom 是否有自己的命令行?
查看 SCREENSHOT 以了解此人如何创建文件夹、文件和使用 ls 命令。
所以我的问题是,如何在 Atom 中创建文件?如何让 touch 命令起作用?
看起来教程使用的是 Term2 package for opening a shell within the editor (http://code.tutsplus.com/courses/speedy-workflows-with-atom/lessons/term2)。由于您似乎能够使用所描述的屏幕截图打开终端,因此您似乎已经安装了 Term2 软件包 - 到目前为止一切顺利。
此包在编辑器中打开标准命令 window。该教程似乎使用 Linux 或 Mac OS X 作为操作系统。如果您是 运行 Windows,您将只有 Windows CMD 解释器可用。
Windows 本身不支持 touch
命令(但它有一个 mkdir
命令)。有个unxtools project that provides some of the common Gnu tools. If you install that, you should be able to run touch
from the Windows command shell as well. More details can be found here.