This is somewhat of a mild OCD and obsessive optimizing question, which will probably only be of use for me.
I want to create a Live Template
in Android Studio
, which looks like this:
// -------------------------------------------------- \\
// -------------------------$variable$------------------------- \\
// -------------------------------------------------- \\
I want the variable bit of text to be centered, and the second line to be just as long as the other two, all done automatically. An example:
// -------------------------------------------------- \\
// ----------------- Example Title ------------------ \\
// -------------------------------------------------- \\
Is this possible with the Live Templates
in Android Studio
, and if so, how would that work?
Do like on image(LiveTemplateSettings). Just copy and paste:
when you are writing "lll" on intellij popup will show, enter it and write what you want. And if you want how is it working or become more strong on live template: https://www.jetbrains.com/help/phpstorm/2016.2/live-template-variables.html