Lenses
This guide is also in the app, under Help › Guide. The dotted names are buttons, panels and options there: in the app, clicking one lights up its place in the window. That only works in the app.
Lenses are various ways of highlighting different aspects of the codebase.
The view has a tab for each lens at its top. Pick a tab to switch its lens on. Pick it again, or click Clear lens, to switch it off. One lens is on at a time.
While a lens is on, the bottom right corner of the canvas glows orange and a notice there says which lens is on. Click the name of the lens to open the Lenses view. Click the × to switch the lens off.
Classes lens
The shows the types in each file and their members. Each one is in the colour of what it is: a class, an interface, an enum, a field, a method or an override.
- Close up, each one is a tint behind its code. Each type also has a frame.
- Further out, the code gets too small to read. So each type is labelled where its name is.
- A type's label ends with what it extends and implements.
- A member's label starts with its visibility: + public, # protected, ~ only within its package or crate, - private.
- Click a label to ask the language server about its name.
In and , each kind has a row with its colour and how many there are.
- Hover a row to light what it names on the canvas. Click the highlighter at the right of the row to keep it lit.
- Hover a type or member on the canvas to light its row.
- Untick a box to leave that kind out. When you leave out a kind of type, its members go too.
- Untick to see only what other code can reach.
- Press a box or a highlighter and drag down the rows. Each row you pass changes the same way.
- The gear beside or chooses whether they are labelled when zoomed out. It also chooses whether each label says what it is, like «interface» or «method». To start with, only types are labelled.
Under Show:
- folds every line outside what is shown. Click a fold to open it.
- leaves out the files that declare nothing shown, and the folders left empty.
- shows the files a language server's answer reaches, even those left out. It is on to start with.
The lens reads the syntax tree of every file in the folders shown as code, as the outline does. Fields holding objects, and getters and setters, are guessed from the code's words.
Read in
More lenses to come
Keeps a kind of type or member lit in the Classes lens, as its row's highlighter does.
In the app:
Shows a kind of type or member in the Classes lens, or leaves it out: a class, an interface, a field, a method and the rest.
In the app:
Each file's classes, interfaces, enums and the rest, their fields and methods in the colours of what each is, at every zoom; their names once the code is too small to read; and the edges to what they extend and implement.
In the app:
Which kinds of type the Classes lens shows: classes, abstract classes, interfaces, enums, records and more.
In the app:
Which members of a type the Classes lens shows: constructors, fields, methods, overrides, getters and setters, and whether private ones show.
In the app:
Keeps each type's name readable once its code is too small to read, at its name in the code, the size of the panel's words however far out.
In the app:
Says what each type labelled is before its name, as «interface» or «enum».
In the app:
Keeps each field's and method's name readable once its code is too small to read, smaller than a type's, with + public, # protected, ~ within its crate or package, or - private before it.
In the app:
Says what each member labelled is before its name, as «field» or «override».
In the app:
Folds every line of a card outside the types and members the Classes lens shows into a row, as Changes folds unchanged lines: everything in a type shown stays.
In the app:
Leaves out the files that declare none of the types and members the Classes lens shows, and the folders that leaves empty.
In the app:
While files are hidden, shows those a language server's answer reaches when a name is clicked, even if they declare none of what the Classes lens shows.
In the app:
Shows a type's private fields and methods too; off, only what other code can reach.
In the app: