Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open file outside of project in Intellij IDEA

Would specifically like to edit /etc/hosts without leaving the Intellij window. How can I open this file while working on some arbitrary project in Intellij?

like image 299
user1592772 Avatar asked Aug 25 '17 16:08

user1592772


1 Answers

Clicking on the File menu (Left hand corner) then clicking Open does the trick, just like most applications.

To set a shortcut for that File Open click you can click on File then settings (Ctrl+Alt+S) and then under Keymap search for File Open. Right click open and you should see the add shortcut dialog. I'm a bit surprised there isn't a default shortcut for this.

like image 89
user3586940 Avatar answered Oct 07 '22 02:10

user3586940