scalameta / metals-feature-requests

Issue tracker for Metals feature requests
37 stars 4 forks source link

option to include Scaladoc @group in outline view #138

Open tpolecat opened 4 years ago

tpolecat commented 4 years ago

Is your feature request related to a problem? Please describe.

In large source files it's sometimes hard to find what I'm looking for. The outline view gives an alphabetic listing, which is great, but sometimes it would be nice to see functional groupings.

Describe the solution you'd like

It would be nice if I had the option to see members within a class placed in sub-folders based on their @group Scaladoc tag, if any. Ungrouped members could be an an Ungrouped folder, as in Scaladoc. Metals could auto-detect this and only introduce group folders when a @group tag is present on at least one class member.

Search terms:

outline, group, scaladoc

tgodzik commented 4 years ago

Thanks for reporting! This might indeed be helpful in case of large files, as an alternative if you are using VS Code you can search through the outline using Go to Symbol in Editor:

symbol-search

Not 100% the same, but might be helpful in some cases.