Live Template: use i18n attributes, update docs

This commit is contained in:
Yann Cébron 2024-04-03 10:49:45 +02:00
parent 36d6e26c54
commit 5efa9a2a86
3 changed files with 9 additions and 5 deletions

View File

@ -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"

View File

@ -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,9 +12,9 @@
</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" />

View File

@ -0,0 +1,2 @@
live.template.mc.description=SDK: Convert to title case
live.template.{.description=SDK: New link reference