• Open menu Help -> Edit Custom Properties... or you can use Search Everywhere feature by double tap Shift key
  • Put this code
project.tree.structure.show.url=false
  • Restart IDE

Before

Before

After

After

Ref: https://stackoverflow.com/questions/40699438/hide-full-path-next-to-project-in-intellij