What are the steps needed to get syntax highlighting on .kv
files in PyCharm on OSX?
Asked
Active
Viewed 2.7k times
33

user
- 5,370
- 8
- 47
- 75

Max Phillips
- 6,991
- 9
- 44
- 71
-
To be honest, even though this question was already asked, the answer here is far more easy to understand and implement as compared to the older question. – Murtaza Haji Mar 01 '21 at 20:45
1 Answers
67
The import settings for PyCharm can be found here: https://github.com/Zen-CODE/kivybits/tree/master/IDE
KV Lang File Type Support
- Download this file
- On Pycharm’s main menu, click "File"-> "Import" (or Import Settings)
- Select this file and PyCharm will present a dialog with filetypes ticked. Click OK.
- You are done. Restart PyCharm.

user
- 5,370
- 8
- 47
- 75

Max Phillips
- 6,991
- 9
- 44
- 71
-
1One more addition here. After adding cloud synchronization of settings we need to disable it first before import settings. Otherwise, no `Import Settings` option will appear. This setting at `File -> IDE Settings Sync -> Disable Sync..` – eirenikos Dec 06 '18 at 08:54
-
9This answer is pretty old and Pycharm changed the settings path. Now you find it under: `File -> Manage IDE settings -> Import Settings...` – Hui Gui Mar 24 '21 at 11:30
-
I did this, and it works however now in the pycharm git bash terminal whenever I try to run `source` on an "activate" file to activate a virtual environment it returns `bash: basename: command not found` . Some other commands don't work after doing this either like `ls` but then some still do work like `cd`. Explanation? – Sean Dec 03 '21 at 12:11