Is there a keyboard shortcut to toggle between single quotes and double quotes in a Ruby code? Or a key I can set up to accept the Inspection Hint?
Thanks, M.
Is there a keyboard shortcut to toggle between single quotes and double quotes in a Ruby code? Or a key I can set up to accept the Inspection Hint?
Thanks, M.
To accept any inspection hint in RubyMine, press Alt+Enter and then use the arrow keys and Enter to select the quickfix to apply.
Current as of RubyMine 2016.2, there is an easier way to convert all quotes via the keyboard:
Suppose you have a double quoted string as "some_string"
then you need to select all "some_string" including both the quotes and press quote key to get 'some_string'
i.e single quoted string. To get the double quotes 'some_string' => "some_string"
follow the same process and press shift+quote key. Hope your problem is solved @Martin.
© 2022 - 2024 — McMap. All rights reserved.