Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloud-9: How to open a file in the c9-editor from c9-terminal

Tags:

cloud9-ide

Is there a way to open a file not from the workspace tree view but from the c9-terminal tab?

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.

like image 729
perelin Avatar asked Jan 19 '15 15:01

perelin


People also ask

How do I open a Cloud9 file in Terminal?

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.

How can you open a new terminal window within the Cloud9 IDE?

Click on the top icon first and then when a new menu opens click on the bottom icon as shown with red circle. In each window, open a new terminal byclicking on + tab and select New Terminal as shown in the picture below.

How do I access AWS Cloud9 IDE?

If you're the only one using your AWS account or you're an IAM user in a single AWS account, go to https://console.aws.amazon.com/cloud9/ . If your organization uses AWS IAM Identity Center (successor to AWS Single Sign-On), ask your AWS account administrator for sign-in instructions.


2 Answers

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.

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

like image 197
Brady Dowling Avatar answered Sep 20 '22 22:09

Brady Dowling


Borrowing from here,

c9 open <filename> 
like image 28
user139301 Avatar answered Sep 19 '22 22:09

user139301