Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Python-Kivy-snippets 1.0.7 #30

Open
jondwaite opened this issue Nov 2, 2020 · 1 comment
Open

Conflict with Python-Kivy-snippets 1.0.7 #30

jondwaite opened this issue Nov 2, 2020 · 1 comment

Comments

@jondwaite
Copy link

Not sure who's at fault here (if anyone), but learning Kivy and trying to use this extension I couldn't figure out why syntax highlighting wasn't working for me.

Uninstalling the 'Python-Kivy-snippets' addon (v1.0.7 in my case) solved this and now highlighting works as expected.

@sspaink
Copy link
Owner

sspaink commented Nov 3, 2020

Looks like the extension Python-Kivy-snippets is overriding the language configuration of this extension kivy-vscode.
To get them both working together what you can do is configure the language for ".kv" files to use "kivy" instead of the language defined in the Python-Kivy-snippets which is KvLang which doesn't have syntax highlighting. Here is a guide to change the language of the selected file: https://code.visualstudio.com/docs/languages/overview#_changing-the-language-for-the-selected-file

For syntax highlighting this is what you want:
image

An even better solution would be to enhance this extension with the snippets you would like to use. This extension already has some Kivy snippets defined you can use, the complete list is here: https://github.com/BattleBas/kivy-vscode/tree/master/snippets Feel free to make a pull requests if you would like to add some yourself it should just be an additional json file, or just let me know what snippets you would like to see added.

Example of the snippets this extension already includes:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants