问题描述
是否有一种方法不是从工作区树视图而是从c9终端选项卡打开文件?
Is there a way to open a file not from the workspace tree view but from the c9-terminal tab?
背景:c9不允许我设置/那里没有写访问权的用户的工作空间路径。但是我想环顾四周,并在主项目目录(虚拟主机,php ini等)之外更改文件。使用该终端,我可以在用户具有读取权限的任何地方漫游。
Background: c9 doesn´t allow me to set the workspace path to / for a user who doesn´t have write access there. But I´d like have a look around and change files outside of the main project directory (virtual hosts, php ini, etc). Using the terminal I can roam around everywhere my user has read access.
推荐答案
目前,这是打开文件的唯一方法在终端上使用vim或使用 ls
,然后单击要打开的文件。
At the moment, the only way to open a file from the terminal is in vim or by using ls
and then clicking on the file you'd like to open.
编辑:您现在可以通过运行 npm install -g c9
,,然后执行 c9 file.ext
或 c9打开file.ext
Edit: You can now open from the terminal by running npm install -g c9
, restarting your workspace, then doing c9 file.ext
or c9 open file.ext
这篇关于Cloud-9:如何从c9-terminal中打开c9-editor中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!