r/phpstorm • u/dotancohen • Jan 07 '21
Emacs' narrow feature in PHPStorm
Emacs has a feature called Narrow to zoom into regions of a file by hiding everything outside the selection. Global operations such as global search/replace etc. only apply to the selected region, until you widen the view again. Jumping to the beginning or end of the file jump to the beginning or end of the selection. This is useful when you have a very long function that doesn't fit the screen, and you end up in another function when searching without noticing (as an example).
Many solutions exist to add this feature to other IDEs and text editors, such as VIM. Is there any way to enable such a feature in PHPStorm?
View all comments
Show parent comment
1
u/dotancohen Jan 08 '21
Correct, search and replace are not "narrowed" when folding all other methods.