user1592772
user1592772

Reputation: 293

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?

Upvotes: 10

Views: 5029

Answers (2)

meisfrancis
meisfrancis

Reputation: 71

Dragging file to Pycharm or using File|Open are not working anymore with the latest Pycharm. You might want to launch LightEditor of Pycharm instead.

pycharm -e /etc/hosts

Upvotes: 1

Hisham Hijjawi
Hisham Hijjawi

Reputation: 2415

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.

Upvotes: 7

Related Questions