mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 08:47:50 +08:00
Live Template: use i18n attributes, update docs
This commit is contained in:
parent
36d6e26c54
commit
5efa9a2a86
@ -32,6 +32,8 @@
|
|||||||
<!-- Text to display as company information on Settings | Plugin page -->
|
<!-- Text to display as company information on Settings | Plugin page -->
|
||||||
<vendor url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
<vendor url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
||||||
|
|
||||||
|
<resource-bundle>messages.LiveTemplates</resource-bundle>
|
||||||
|
|
||||||
<extensions defaultExtensionNs="com.intellij">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<defaultLiveTemplates file="/liveTemplates/Markdown.xml"/>
|
<defaultLiveTemplates file="/liveTemplates/Markdown.xml"/>
|
||||||
<liveTemplateContext implementation="org.intellij.sdk.liveTemplates.MarkdownContext"
|
<liveTemplateContext implementation="org.intellij.sdk.liveTemplates.MarkdownContext"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<templateSet group="Markdown">
|
<templateSet group="Markdown">
|
||||||
<template name="{"
|
<template name="{"
|
||||||
value="[$TEXT$]($LINK$)$END$"
|
value="[$TEXT$]($LINK$)$END$"
|
||||||
description="SDK: New link reference"
|
|
||||||
toReformat="false"
|
toReformat="false"
|
||||||
toShortenFQNames="false">
|
toShortenFQNames="false"
|
||||||
|
key="live.template.{.description" resource-bundle="messages.LiveTemplates">
|
||||||
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true"/>
|
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true"/>
|
||||||
<variable name="LINK" expression="complete()" defaultValue="" alwaysStopAt="true"/>
|
<variable name="LINK" expression="complete()" defaultValue="" alwaysStopAt="true"/>
|
||||||
<context>
|
<context>
|
||||||
@ -12,12 +12,12 @@
|
|||||||
</template>
|
</template>
|
||||||
<template name="mc"
|
<template name="mc"
|
||||||
value="$TITLE$"
|
value="$TITLE$"
|
||||||
description="SDK: Convert to title case"
|
|
||||||
toReformat="true"
|
toReformat="true"
|
||||||
toShortenFQNames="false">
|
toShortenFQNames="false"
|
||||||
|
key="live.template.mc.description" resource-bundle="messages.LiveTemplates">
|
||||||
<variable name="TITLE" expression="titleCase(SELECTION)" defaultValue="the quick brown fox" alwaysStopAt="true" />
|
<variable name="TITLE" expression="titleCase(SELECTION)" defaultValue="the quick brown fox" alwaysStopAt="true" />
|
||||||
<context>
|
<context>
|
||||||
<option name="MARKDOWN" value="true" />
|
<option name="MARKDOWN" value="true" />
|
||||||
</context>
|
</context>
|
||||||
</template>
|
</template>
|
||||||
</templateSet>
|
</templateSet>
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
live.template.mc.description=SDK: Convert to title case
|
||||||
|
live.template.{.description=SDK: New link reference
|
Loading…
x
Reference in New Issue
Block a user