syntax - PyCharm 中的 Vagrantfile 语法高亮

标签 syntax vagrant pycharm vagrantfile

我使用 Vagrant 插件来运行 VM,但我仍然希望在 PyCharm 中设置 Vagrantfile 语法高亮。

是否可以?

提前致谢!

最佳答案

Vagrantfile 是作为 Ruby 源文件编写的。因此,如果您可以在 PyCharm 中使用 Ruby 语法突出显示,那么默认情况下它将适用于 Vagrant 文件。参见以下问答,它适用于 PyCharm:

Is it possible to get Ruby syntax highlighting in PHPStorm?

tldr :

Git 在某处克隆以下存储库(例如 ~/PyCharm_Misc/ ):

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

然后在 PyCharm 中的以下菜单中添加 repo 的文件夹( ~/PyCharm_Misc/ruby.tmbundle )作为“TextMate Bundle”:

文件 -> 设置 -> 编辑器 -> TextMate 捆绑包

关于syntax - PyCharm 中的 Vagrantfile 语法高亮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37819425/

相关文章:

syntax - 批处理脚本: The syntax of the command is incorrect - when script is going trough subdirectories?

oracle10g - 从 OS X 连接到 Vagrant box 上的 Oracle

ubuntu - PuPHPet Vagrant box 需要 apt-get 更新吗?

python - pycharm 上的 anaconda ver5.3.1 缺少必需的依赖项 ['numpy' ]

python-3.x - 故意抽象的子类上的PyCharm "must implement all abstract methods"

语法

javascript - 赋值语法

mysql - 尝试将 SQL Server 转换为 MySql 进行类(class)

windows - 关闭 Vagrant Box

python - 如何将gensim引入pycharm