15

I use Vagrant plugin for running VMs, but I still desire to set up Vagrantfile syntax highlight in PyCharm.

Is it possible?

Thanks in advance!

Zoran Pavlovic
  • 1,166
  • 2
  • 23
  • 38
kagarlickij
  • 7,327
  • 10
  • 36
  • 71

1 Answers1

14

Vagrantfile is written as a Ruby source file. So if you can get Ruby syntax highlighting to work in PyCharm, it'll work for vagrant files by default. See the following question and answer, it applies to PyCharm:

Is it possible to get Ruby syntax highlighting in PHPStorm?

tldr:

Git clone the following repo somewhere (e.g. ~/PyCharm_Misc/ ):

https://github.com/textmate/ruby.tmbundle

Then add the repo's folder ( ~/PyCharm_Misc/ruby.tmbundle ) as a "TextMate Bundle" inside PyCharm in the following menu:

File -> Settings -> Editor -> TextMate Bundles

Community
  • 1
  • 1
Zoran Pavlovic
  • 1,166
  • 2
  • 23
  • 38