question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax colorization for imported classes and functions

See original GitHub issue

Can this feature be available? It is already implemented, in part, in VStudio.

VSCode VStudio
image image

It makes code really confusing without it: image

Designer is a class which should be green and add_designer a method that, in theory, should be yellow. Also, designer_name and designer_icon are parameters that should be light blue in the function to differentiate from class fields and properties.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
BrunoBlanescommented, Feb 23, 2021

image Holly molly that does exactly what I wanted. I don’t particularly care for the theme you mentioned given that the natural colors of Pylance are just perfect. Thanks!

1reaction
jakebaileycommented, Feb 25, 2021

If the library is untyped, you’re bound to get issues like these. But I personally would have expected that declaration to take precedence (you are explicitly saying that variable is Guild | Mone, per https://github.com/microsoft/pylance-release/issues/822, so a new issue would likely help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax Highlight Guide | Visual Studio Code Extension API
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords...
Read more >
how to highlight imported functions in python code?
python-mode or elpy-mode in Emacs only highlight the basic Python library functions. If you work a lot with other libraries like numpy and ......
Read more >
Color highlight function calls in VIM - Stack Overflow
I have something like that in my configuration, but it's quite language specific. For example for Golang, I have a ~/.vim/after/go.vim which ...
Read more >
5. Syntax Highlighter and Color Settings Page
The first level of syntax highlighting is based on the lexer output, ... HighlighterColors; import com.intellij.openapi.editor.colors.
Read more >
Python Syntax highlighting/colors are still broken? #65713
VSCode's Python syntax highlighting still broken after all plugins are ... import random import datetime import math class Mapping: def ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found