sublime icon indicating copy to clipboard operation
sublime copied to clipboard

Python imports and variables are underlined

Open karpitsky opened this issue 2 years ago • 8 comments

Hello,

It seems to be an issue with the new Sublime Text build (4152). Imports and variables are underlined when the syntax is set to python.

Screenshot 2023-08-03 at 12 59 40


The following rules fix the issue:

"rules": [{
    "scope": "meta.path",
    "font_style": "",
    "foreground": "#F8F8F0"
}]

karpitsky avatar Aug 03 '23 12:08 karpitsky

Same issue for me with build 4152, nearly everything is underlined:

image

The above rule resolved it for me too.

shadowFAQs avatar Aug 06 '23 22:08 shadowFAQs

Thank you! For anyone else who didn't know, you can add these rules in by going to Preferences > Customize Color Theme and adding in the above rules.

JohnENoonan avatar Aug 08 '23 19:08 JohnENoonan

It helps! But when I define a class, the name of the class will still be underlined after I add these rules. image

LichKing-W avatar Aug 09 '23 01:08 LichKing-W

@LichKing-W I believe that's how the formatting is supposed to work for class names. At least, that's how it worked for me prior to the upgrade to build 4152.

shadowFAQs avatar Aug 09 '23 01:08 shadowFAQs

@shadowFAQs I recall that class names weren't underlined. Also, the formatting in the example from this repo indicates a preference for clear formatting.

python

aziele avatar Aug 29 '23 06:08 aziele

Thank you! Dracula is the best theme ever!

T-700 avatar Sep 13 '23 20:09 T-700

@shadowFAQs I recall that class names weren't underlined. Also, the formatting in the example from this repo indicates a preference for clear formatting.

python

Yes, you are right.. If I change to another color scheme like monokai, it is not underlined.. But with dracula, the classes are underlined. Anyone knows how to solve it?

Thanx

herrmartins avatar Sep 14 '23 16:09 herrmartins

Same python file, left on sublime, right on emacs : Screenshot from 2023-12-14 16-20-16

I confirm changing with the rules in the first post works so maybe it should be the default to match the behaviour of emacs.

mart-e avatar Dec 14 '23 15:12 mart-e