简体   繁体   English

自动完成功能不适用于RubyMine中的数组方法

[英]Autocomplete not working for array methods in RubyMine

I am using RubyMine 2018.3. 我正在使用RubyMine 2018.3。 With the following, I didn't get suggestions for new after typing up to ne . 通过以下内容,在输入ne之后我没有得到有关new建议。

array1 = Array.new

With the following, I typed up to pus , and didn't get auto-complete suggestion for push . 通过以下操作,我输入了pus ,但没有收到关于push自动完成建议。

array1.push("shivendra")

Similarly for insert , pop , and delete_at . 对于insertpopdelete_at类似的。 I do not get auto-complete suggestion. 我没有自动完成建议。

  1. Is this issue happening only for me, or do others also face this issue? 这个问题只发生在我身上吗,还是其他人也面临这个问题?
  2. How can I make auto-complete work? 如何进行自动完成工作? I am willing to use any gem file, other editor, or external library. 我愿意使用任何gem文件,其他编辑器或外部库。

I have RubyMine 2018.3 too. 我也有RubyMine 2018.3。 I tried and it doesn't work for me either. 我尝试过,但对我也不起作用。

But I never use this way because in accordance with the codestyle it is not recommended . 但是我从不使用这种方式,因为根据代码风格不建议这样做

If you write array1 = [ – RubyMine will autocomplete it. 如果您编写array1 = [ – – RubyMine将自动完成它。

After this if you write array1.pu – RubyMine will offer push . 之后,如果您编写array1.pu – RubyMine将提供push

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM