Codist icon indicating copy to clipboard operation
Codist copied to clipboard

Suggestion: Separate Style for Symbols from the Current Project

Open fitdev opened this issue 4 years ago • 3 comments

In addition to having an incredibly useful feature that lets you distinguish between user and non-user code, it would be nice to have additional "levels" of such distinction by having additional highlight classes:

  • All user code (symbols) that are defined in the same project as the file being edited. (Style should inherit from User Code style)
  • If possible distinguish between Framework vs 3rd-party library code.

fitdev avatar Jul 08 '21 08:07 fitdev

Currently it can take quite a lot of efforts to determine whether a symbol belongs to the same project of the editing document.

Nowadays, user symbols have no special style and the imported symbols are displayed in bold. What kind of style do you suggest if this feature is implemented?

wmjordan avatar Jul 08 '21 09:07 wmjordan

Nowadays, user symbols have no special style and the imported symbols are displayed in bold.

I have it set up the other way around on my end (just my preference).

What kind of style do you suggest if this feature is implemented?

Ideally it would just use a different font. That's how I made it work with user vs non-user code. They use slightly different fonts (one is regular the other is bolded version). So I was thinking perhaps a 3rd font could be selected by the user for this new style class. The way I would have it set up for instance would be:

  • Bold: current project code
  • Semibold / regular: user code
  • Regular / Thin: 3rd party and framework code

fitdev avatar Jul 08 '21 13:07 fitdev

Since this requires a lot of work, I have backlogged this. I will try to find a way which requires less CPU resources later.

wmjordan avatar Jul 09 '21 00:07 wmjordan