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 -->
|
||||
<vendor url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
|
||||
|
||||
<resource-bundle>messages.LiveTemplates</resource-bundle>
|
||||
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<defaultLiveTemplates file="/liveTemplates/Markdown.xml"/>
|
||||
<liveTemplateContext implementation="org.intellij.sdk.liveTemplates.MarkdownContext"
|
||||
|
@ -1,9 +1,9 @@
|
||||
<templateSet group="Markdown">
|
||||
<template name="{"
|
||||
value="[$TEXT$]($LINK$)$END$"
|
||||
description="SDK: New link reference"
|
||||
toReformat="false"
|
||||
toShortenFQNames="false">
|
||||
toShortenFQNames="false"
|
||||
key="live.template.{.description" resource-bundle="messages.LiveTemplates">
|
||||
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true"/>
|
||||
<variable name="LINK" expression="complete()" defaultValue="" alwaysStopAt="true"/>
|
||||
<context>
|
||||
@ -12,12 +12,12 @@
|
||||
</template>
|
||||
<template name="mc"
|
||||
value="$TITLE$"
|
||||
description="SDK: Convert to title case"
|
||||
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" />
|
||||
<context>
|
||||
<option name="MARKDOWN" value="true" />
|
||||
</context>
|
||||
</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