In Nitrous.io, how do you open a file in the IDE from the console? - nitrousio

The Nitrous.io IDE appears to have 4 parts. There's a file browser, a text editor, a console/terminal, and a chat window. It appears that the only way to open a file in the text editor is from the file browser. This only allows me to open files within my home directory. Is there any way to open files in the text editor from the console?

Shift-Ctrl P is available to Go to File... which seems similar to sublime functionality.

You cannot open a file from the shell into the web interface because the web interface is not linked to the shell. The shell is a SSH terminal, which means you can alternately terminal editors such as vi, vim, nano, or emacs.

You can use vim or emacs in the console to edit code. You can maximize the console to take up the entire window, which is a nice coding experience.
http://help.nitrous.io/ide-fullscreen/
You should be able to access any file on your box from the file browser; note that there is also a button at the bottom of the file browser to enable you to show hidden files.
If you're on a Mac, you can also check out our Mac application that will allow you to use your favorite Mac OS X text editor. It also provides shortcuts to manage your boxes on Nitrous.IO:
https://www.nitrous.io/mac

Related

VS code. build in terminal command 'open file.html' opens file in browser instead of vs code redactor

how to setup vs code so it opens files in its own redactor? It worked fine but somehow it broke down and now it opens html files in browser by default.
After terminal command 'open fileName' file opens in vs code redactor window.
Hi I'm here trying to help you. if i'm not mistaken, i'm guessing that you are using MacOS right?
Since i'm using Windows 11, i dont know anything about MacOS, but usually i open VScode via terminal (Command Prompt / CMD) then i go to a folder path and use command code . in there.
So the VScode open and i can see my .html file and other files in that folder in the VScode.
And also i believe that in MacOS it is also possible to set by default what app is used to open certain files such as .html file. In the Windows 11, i can changed it by using the "open file with" feature as shown in this link image. I can choose the VScode option, so it open VScode by default when i click the .html file and not open browser.
I also have some references that might help you:
https://youtu.be/YxJXIPebqMI
https://youtu.be/xLY6fqT2fIU
Sorry for my bad English, this is all I can give. I hope this can help you

Cannot start editting my Html file in Visual Studio Code

I create a file with html extension with visual studio code. I can create the file but I cannot edit it. Can you help me solve this issue
Try running Visual Studio Code as an administrator if you are using Windows.
Right Click Visual Studio Code > Run as Administrator, follow the instructions from then on.
You can also edit file permissions entering here:
Right Click File > Properties > Security tab
This should lead you to an User Selection screen, select your user and click Edit, see if the checkmarks for Write and Read are activated, activate them otherwise, click OK and restart Visual Studio Code, try to access the file then.
If you are using Linux, try changing the read and write permissions so that you can make modifications to the file. This is done through chmod. Use Bash (or the terminal emulator you are given for doing this).
Example:
chmod +rw <file_here>
That should be enough.
More description would be better...Don't understand " create a file with html extension". Try to create a .txt file and open it with vscode and see if you can edit it. If can, you can create another .txt file in your PC, change the suffix of the filename(.txt) to (.html) and then try to open it with vscode, check if you can edit it.
html extension with visual studio code it have a lot of problems, so you can create index.html by yourself. Example:
Open VS then press on File then click on new window.
You can save as this window in your project folder.
Don't forgot to save it with .html file type so browser and VS can read it.

create installer to make google chrome shortcut of a site

is there a way to create installer to make google chrome shortcut of a site?
I made a web app and instead of trying to get multiple computers to type the url, I created a shortcut of chrome with this command.
--app=example.com/blah/blah
Is there a way that i can create an shortcut with the command and compile it, with an icon?
You don't need to point to Chrome if that is already the default web browser from the machine. All you need to create is an URL shortcut. All MSI authoring tools should be able to do that.
With the free edition of Advanced Installer you can do like this:
if you don't have AI, download and install it
launch the application and create a "Simple" project, like in the first step from this tutorial
then just create a shortcut to URL in the Files and Folders page, using the option "New Shortcut To -> URL... " and set the URL desired in the configuration dialog of the new shortcut.
save and build the project, the MSI will be generated and you can now install it on the desired machines
Download this sample project file to see how it looks if you have problems following the steps above.

Apps, Extensions and scripts cannot be added from this website

I'm trying to add the Rapid Interface Builder extension to chrome using the rib.crx file I downloaded from https://01.org/rapid-interface-builder/downloads/2012/rib-preview-1-chrome-extension
Unfortunately, every time I open the crx file with chrome I get the following error:
Apps, Extensions and scripts cannot be added from this website.
Any ideas on how to fix this?
Instead of opening the file, you have to: extract it (crx are zip files), then visit chrome://extensions, enable developer mode, and load unpacked extension.
The reason for this is: lots of people try to abuse chrome apps/extensions to install nasty applications to your browser. So Chrome tries to make it impossible to automatically side-load these apps without you making sure that is really what you want to do.
So.. typical caveats of installing software apply when using this approach.
You can now also just drag-and-drop the .crx file onto the chrome://extensions page and it will install, too.
Edit 2019-01-10: Make sure to enable Developer mode for extensions. If this was not enabled, refresh the chrome://extensions page after enabling it.
Edit 2018-08-24: This works on Windows, too.
Edit:
This doesn't work on Windows. Verified on OSX and ChromeOS. From what I've read, this will work on Linux, too.~
(I initially experienced the same problem you described.*)
This solution worked for me in Windows 10 (build th1511) x64:
Open Chrome as you normally would.
Go to the "Extensions" page (chrome://extensions; or click Menu button at top right corner → From 'More tools' drop down menu select 'Extensions').
Drag and drop the .crx file onto the extensions page in Chrome -onto the list of extensions.
You should see a dialog stating "Drop here to install". This must be present. (If you do NOT see this, reposition your mouse - it may be too far to the side of the page.)
It should load successfully and you should see the extension in the list immediately afterward.
*I received the same error you described when attempting to load the .crx file (packed extension) by right-clicking/double-clicking it and selecting "Open With" "Chrome", and by dragging/dropping the file onto a regular webpage in Chrome.
In the Extensions page, just enable Developer mode. From there you can drag and drop any .crx file there and installation prompt will follow suit.
Open Chrome with this parameter --enable-easy-off-store-extension-install, then go to extensions and enable Developer mode. Now you can install .crx files without any problem.
go on extension, and your first step is on developer mode, 2 step update extensions, and last drop IDM extension file on google chrome.

Package Control - plugin to run file in browser

I am looking plugin to run .html file in browser and also open folder in windows explorer.
The reason is simply. I always start work in the same way: run Sublime Text 2, click 16 times with mouse on folder to open folder with project and run index.html or other. I also need open folder because i copy there from time to time some graphics or other files.
Navigating to files
You can save your workspace as a project in Sublime Text so you don't have to re-navigate to the same files every time.
Open the files you need and lay them out however you like
Go to Project > Save Project As and save the project file somewhere convenient
Open the project file to resume work on those files
As a side note, I highly recommend the SyncedSidebar plugin to automatically expand the sidebar to reveal the files you have open.
You should also be able to right click in the file you're editing and "Reveal in Windows Explorer" (I use a Mac so I can only verify "Reveal in Finder").
Opening in a browser
You can set up a build path for this, or use a plugin like View in Browser.