[英]How do make snippets work for Ruby On Rails in Textmate 2?
On a fresh install of Textmate2, you used to be able to type hm<tab>
while editing in a model and it would type out a whole has_many
line for you, but now it just types a tab. 在全新安装的Textmate2上,您过去可以在模型中编辑时键入
hm<tab>
,它将为您键入整个has_many
行,但现在只键入一个制表符。 All of the text-completion seems broken. 所有文本完成似乎都坏了。 The ones from Ruby are still working (
def<tab>
creates a method block with the name selected, for instance). Ruby中的代码仍在工作(例如,
def<tab>
创建一个具有所选名称的方法块)。
I noticed that the "Ruby on Rails" bundle wasn't enabled by default anymore, but I fixed that and the issue remains. 我注意到默认情况下不再启用“ Ruby on Rails”捆绑软件,但是我已修复了该问题,仍然存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.