Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert $SELECTION$ to snake case(for example) using live templates?

How to convert selected code to snake case for example (or camel case or something other standart expression from live template variable options)

like image 791
Aram810 Avatar asked Oct 06 '16 18:10

Aram810


1 Answers

The answer was provided in this comment on the JetBrains forum

There is "String Manipulation" plugin that lets you to convert the case of selected text via the right click menu or via custom shortcuts assigned at Settings/Preferences > Keymap.

You can install the plugin via Settings/Preferences > Plugins > Browse repositories.

like image 157
Aram810 Avatar answered Nov 15 '22 10:11

Aram810