Code editor with different highlighting for built-in and user functions

I am using VSCode so far, and it seems that all functions, methods and their names are highlighted in the same color, which for longer code can take some time to distinguish between built-in functions/methods used and user-defined functions. I suppose for built-in and user-defined classes this is the same.

Especially this can be relevant while reading code (e.g. Python), which imports lots of libraries and uses many methods from them.
I am not sure whether PyCharm maybe has such a feature.

Are there any code editors, which have such differential custom code highlighting feature?

Code highlighters are basically just parsers/tokenizers. They often don’t even know the language unless you tell them what language it is (implicit or file extension).

There are semantic highlighters which uses language servers, but I still don’t think they can do what you are asking for. You can search for semantic highlighting in the VS Code extensions.

I’m also pretty sure it could get confusing to read because now you have different semantic coloring depending on not only the type but where it came from. So a function/class/method/whatever isn’t just colored by type, but by type and where it came from. So now you have to mentally juggle twice as many colors.

I didn’t mean to highlight the non-user defined objects by source or its type, just to highlight as a single non-user defined type while preserving some resemblance to the original color used for this object type (class/function), like maybe applying one overlay color to all non-user defined objects.
Then if you need more information about the full range of object’s properties/functions, you can immediately consult its documentation, rather than trying to figure out where in the codebase this object was defined and inspect its features there, thus freeing some working memory from keeping all user-defined function names there.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.