mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
[live templates] Custom macro tests
This commit is contained in:
parent
4e80e8a17b
commit
ba1c57dace
@ -10,7 +10,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class TitleCaseMacro extends MacroBase {
|
||||
|
||||
public TitleCaseMacro() {
|
||||
super("TitleCase", "TitleCase(String)");
|
||||
super("titleCase", "titleCase(String)");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user