How to get syntax highlighting on Kivy, .kv, file in Pycharm on OSX?

Phil Andrews picture Phil Andrews · Jun 24, 2016 · Viewed 13.1k times · Source

What are the steps needed to get syntax highlighting on .kv files in PyCharm on OSX?

Answer

Phil Andrews picture Phil Andrews · Jun 24, 2016

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.