Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrantfile syntax highlight in PyCharm

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!

like image 839
kagarlickij Avatar asked Jun 14 '16 18:06

kagarlickij


1 Answers

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

like image 101
Zoran Pavlovic Avatar answered Oct 21 '22 03:10

Zoran Pavlovic