pyGisServer
pyGisServer

Reputation: 73

semantic highlighting issue vscode windows 10

I have problems with semantic highlighting in vscode, it is nothing serious but the truth is that it is awful and after spending two days looking for how to solve the problem I have not achieved anything, so I have decided to ask around here. The problem is that when installing vscode on windows the semantic highlighting it worked: semantic highlighting working however after closing and opening the application or starting a new window, the semantic highlighting stops working: semantic highlighting not working. This does not happen in a virtual machine that I have with ubuntu, I have tried to uninstall and reinstall the python extension, I have also tried to install the user version and the system version, but I get the same problem for both versions. I don't know how to fix it.

Upvotes: 0

Views: 2310

Answers (2)

Spencer_C
Spencer_C

Reputation: 1

I solved this issue for myself by enabling pylance. I had disabled it for another project that had a linking issue.

Upvotes: 0

Steven-MSFT
Steven-MSFT

Reputation: 8431

I tried some Themes in my VSCode:

enter image description here

enter image description here

enter image description here

enter image description here

And you can custom it manually in the settings.json file:

  "editor.tokenColorCustomizations": {
    "functions": "#0077ff",
    "comments": "#0004ff",
    "keywords": "#c8ff00",
    "numbers": "#ff00ea",
    "strings": "#FF0000",
    "textMateRules": [
      {
        "scope": "source.python meta.function-call.python",
        "settings": {
          "foreground": "#72f1b8",
          "fontStyle": "bold"
        }
      }
    ],
    "types": "#00e1ff",
    "variables": "#ff8800"
  },

It will look like this:

enter image description here

Upvotes: 1

Related Questions