New answers tagged intellij-idea
As of now, the current version of IntelliJ (version 2016.2, build: 162.1121.32) does support variables in their expression evaluator (code fragment mode). I tried val and var, they both work as expected.
Navigate | File doesn't currently support scopes. Please vote for IDEA-107386 if you miss this feature. Note that library files shouldn't normally be included in search if Include non-project files is off
This works for the current file:
Top 50 recent answers are included