0

With WebStorm, here is how I find the file containing a specific word. I painfully

  • global-search a word,
  • click open the file, then
  • memorize its path and try to
  • click my way down the folder structure.

There must be an easier way!

LazyOne
  • 158,824
  • 45
  • 388
  • 391
RemyG
  • 187
  • 2
  • 4

2 Answers2

1

Once file is opened/current, locate it in folder structure by clicking on the icon, shown (called 'scroll from source') enter image description here

enjoy!

RemyG
  • 187
  • 2
  • 4
0

There is a Scroll from source button in the Project view toolbar

enter image description here

it selects the currently opened file in the project tree. Also, you can assign a preferred shortcut to Select in Project View action in Settings | Keymap | Other. Another option is using Navigate | Select in... | Project View.

Note that you can enable auto-scrolling from source for all files: open Project View options dropdown and choose the Autoscroll from source - when it's enabled, current file is auto-selected in the Project view on opening.

lena
  • 90,154
  • 11
  • 145
  • 150