Mark Evans
Mark Evans

Reputation: 920

Rubymine reveal current document in project tree / project drawer

If i'm working on a file in RubyMine, is there a shortcut key or context menu option where I can "reveal in sidebar" and it basically would expand the project tree down to the file I currently am working on?

This is a feature in both TextMate and Sublime Text 2, but I haven't found it RubyMine yet.

Upvotes: 40

Views: 7474

Answers (6)

Abhi
Abhi

Reputation: 4261

FOR RubyMine v2021.1.3

Goto help and click Find Action, as shown below:

enter image description here

Then search for Keymap setting, as shown below: enter image description here

Then, in Keymap Settings, search for Select File in Project View, as shown below: enter image description here

Then add a keyboard shortcut. I have added Alt + P. So, whenever I'm on a file and want to see it in the Project View, I simply do Alt + P.

Although, there are other methods of doing so. But, this is much convenient for me. Hope it helps someone else too.

Upvotes: 0

Marco Lackovic
Marco Lackovic

Reputation: 6517

In RubyMine 2019.3:

  1. click on the project gear icon
  2. select "Always select opened file"

enter image description here

Upvotes: 15

Canbey Bilgili
Canbey Bilgili

Reputation: 786

Also you can use target icon in Project view. With Rubymine 2019, it'a new target icon.

Rubymine 2019

Upvotes: 43

idrinkpabst
idrinkpabst

Reputation: 1838

To change the keymap go to

File -> Settings  (RubyMine -> Preferences)
Keymap -> 
Main Menu -> Navigate -> Select In

Upvotes: 2

eyupatis
eyupatis

Reputation: 599

You can use a setting that automatically does that.

In Project View go to settings and activate Autoscroll From Source

It will open current file in the project tree like sublime or atom does.

Upvotes: 18

CrazyCoder
CrazyCoder

Reputation: 402375

Navigate | Select In, Project View. Shortcut would depend on keymap, default is Alt+F1.

Upvotes: 43

Related Questions