Can openapi bind a shortcut with inserted str?

In ruby file, when i select "a_selection", I hope hit "#" to change it to "#{a_selection}", this action is very frequently used when i code, so i think use "live template" or "macro" or "external tool" is too slow.
this is my youtrack issue https://youtrack.jetbrains.com/issue/RUBY-16047, i hope implement this func in idea like rubymine

1 comment
Comment actions Permalink

IntelliJ already has a feature that does similar surround logic for parentheses and quotes; you can use it as an example to implement your feature.
https://github.com/JetBrains/intellij-community/blob/master/platform/lang-impl/src/com/intellij/codeInsight/editorActions/SelectionQuotingTypedHandler.java

0

Please sign in to leave a comment.