Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Ruby 代码中是否有在单引号和双引号之间切换的键盘快捷键?或者我可以设置一个键来接受检查提示?
谢谢,M。
要接受 RubyMine 中的任何检查提示,请按Alt+ Enter,然后使用箭头键并Enter选择要应用的快速修复。
从 RubyMine 2016.2 开始,有一种更简单的方法可以通过键盘转换所有引号:
假设您有一个双引号字符串,"some_string"那么您需要选择所有“some_string”,包括引号并按引号键来获取'some_string'单引号字符串。要获得双引号'some_string' => "some_string",请遵循相同的过程并按 shift+quote 键。希望您的问题得到解决@Martin。
"some_string"
'some_string'
'some_string' => "some_string"