问题描述
我使用的是 RubyMine 6.3.2.当我输入以下行并按回车/输入时:
I am using RubyMine 6.3.2. When I type the following line and press return/enter:
# This is a comment.
编辑器插入额外的文本,导致:
the editor inserts additional text, resulting in:
# This is a comment.after() do
end
我知道发生这种情况是因为aft"是键入."后出现的下拉列表中的第一项.我可以通过在返回/输入后按空格来阻止插入,但这会在行尾添加一个空格,我必须记住这样做.
I understand that this happens because "aft" is the first item on the dropdown that appears after typing ".". I can preventing the insertion by pressing space after return/enter, but that adds a space to the end of the line, and I have to remember to do it.
有没有办法在评论中禁用代码完成?
Is there a way to disable code completion within comments?
推荐答案
这是一个错误:http://youtrack.jetbrains.com/issue/RUBY-15127它在昨天发布的 6.3.3 中得到了修复:http://blog.jetbrains.com/ruby/2014/06/rubymine-6-3-3-rspec-3-code-insight-other-fixes/
It is a bug: http://youtrack.jetbrains.com/issue/RUBY-15127It was fixed in 6.3.3, which was released yesterday: http://blog.jetbrains.com/ruby/2014/06/rubymine-6-3-3-rspec-3-code-insight-other-fixes/
这个重复的错误报告 http://youtrack.jetbrains.com/issue/RUBY-15195 提供了一种解决方法,即转到 RubyMine 的注册表(Control-Shift-A 并键入registry")并取消选中show.live.templates.in.completion".这很有效,而且它向我揭示了 RubyMine 注册表的存在,所以这很酷.
This duplicate bug report http://youtrack.jetbrains.com/issue/RUBY-15195 gives a workaround, which is to go to RubyMine's registry (Control-Shift-A and type "registry") and uncheck "show.live.templates.in.completion". That works, and it revealed to me the existence of RubyMine's registry, so that's cool.
这篇关于如何在注释行结束后禁用 RubyMine 代码完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!