[live templates] Custom macro tests

This commit is contained in:
JohnHake 2020-03-12 23:02:31 -07:00
parent 4e80e8a17b
commit ba1c57dace
2 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import org.jetbrains.annotations.NotNull;
public class TitleCaseMacro extends MacroBase {
public TitleCaseMacro() {
super("TitleCase", "TitleCase(String)");
super("titleCase", "titleCase(String)");
}
/**

View File

@ -10,13 +10,12 @@
<option name="MARKDOWN" value="true"/>
</context>
</template>
<template name="tc"
<template name="mc"
value="$TITLE$"
shortcut="NONE"
description="SDK: Convert to title case"
toReformat="true"
toShortenFQNames="false">
<variable name="TITLE" expression="TitleCase(String)" defaultValue="" alwaysStopAt="true" />
<variable name="TITLE" expression="titleCase(SELECTION)" defaultValue="the quick brown fox jumped over the lazy dog" alwaysStopAt="true" />
<context>
<option name="MARKDOWN" value="true" />
</context>