2022-10-23 15:21:30 +08:00
|
|
|
|
<idea-plugin url="https://plugins.jetbrains.com/plugin/18553-show-comment">
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<id>io.github.linwancen.show-comment</id>
|
|
|
|
|
|
<name>Show Comment</name>
|
|
|
|
|
|
<vendor email="1498425439@qq.com" url="https://github.com/LinWanCen/show-comment">林万程</vendor>
|
2022-02-11 00:23:01 +08:00
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<description><![CDATA[
|
2022-10-23 15:21:30 +08:00
|
|
|
|
Show doc comment at the Project view Tree, line End, json etc.
|
2022-03-07 23:58:57 +08:00
|
|
|
|
<ul>
|
2022-10-23 15:21:30 +08:00
|
|
|
|
<li>"xx-ClassNameOrSimpleName.json" and jump to field
|
2022-10-30 21:00:10 +08:00
|
|
|
|
<li>input `doc` `docc` -> /** */
|
|
|
|
|
|
<li>json doc from xxx.json.tsv
|
|
|
|
|
|
<li>json dict doc from (key).tsv
|
2022-10-23 15:21:30 +08:00
|
|
|
|
<li>from External Conf for folder, resources, COBOL etc.
|
2022-04-06 23:08:03 +08:00
|
|
|
|
<li>Config: settings -> Tools -> // Show Comment Global/Project
|
2022-03-07 23:58:57 +08:00
|
|
|
|
</ul>
|
2022-04-06 23:08:03 +08:00
|
|
|
|
|
|
|
|
|
|
<h3>External Comment:</h3>
|
2022-08-06 05:00:21 +08:00
|
|
|
|
<a href="https://github.com/LinWanCen/show-comment/tree/main/src/test/java/io/github/linwancen/plugin/show/demo/ext">Demo(GitHub)</a>
|
2022-04-06 23:08:03 +08:00
|
|
|
|
<ul>
|
|
|
|
|
|
<li>Reload: Tools -> 🔄 // Reload External Comment
|
|
|
|
|
|
<li>path/[any][filename.]ext.tree.tsv // file and folder tree comment 📝 📁
|
|
|
|
|
|
<li>path/[any][filename.]ext.key.tsv // line keywords to split and comment
|
|
|
|
|
|
<li>path/[any][filename.]ext.doc.tsv // line words comment
|
2022-06-08 23:15:14 +08:00
|
|
|
|
<li>In path, "doc" can replace any, and can use % like in SQL, effect at previous layer when folder named -1
|
2022-04-07 08:01:20 +08:00
|
|
|
|
<li>The lines in key.tsv will be concatenated with `|` to regexp; longer str should in front; startWith `?` to exclude
|
2022-04-06 23:08:03 +08:00
|
|
|
|
<li>Chang tsv file in find pop window would not reload!
|
|
|
|
|
|
<li>The tsv conf file must could be search in "Go to File"(Ctrl + Shift + N)
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
2022-12-11 22:09:44 +08:00
|
|
|
|
<h2>My Other Project</h2>
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
<li>Find author/comment of multiple files or lines and export Find:
|
|
|
|
|
|
<a href="https://plugins.jetbrains.com/plugin/20557-find-author">Find Author</a>
|
|
|
|
|
|
</ul>
|
2022-04-06 23:08:03 +08:00
|
|
|
|
|
|
|
|
|
|
<h2>中文说明:</h2>
|
2022-03-07 23:58:57 +08:00
|
|
|
|
<ul>
|
2022-03-15 23:31:44 +08:00
|
|
|
|
<li>在结构树显示 文档注释
|
|
|
|
|
|
<li>在行末尾显示 文档注释
|
2022-10-30 21:00:10 +08:00
|
|
|
|
<li>输入 doc / docc 等生成 /** */
|
|
|
|
|
|
<li>json 字段注释从 xxx.json.tsv 读取
|
|
|
|
|
|
<li>json 字典注释从 键名.tsv 读取
|
2022-08-09 00:41:23 +08:00
|
|
|
|
<li>支持 "xx-类全名或简名.json" 文档注释与跳转到字段
|
2022-04-24 03:06:41 +08:00
|
|
|
|
<li>支持 从配置文件获取外部注释用于文件夹、资源、COBOL 等
|
2022-04-06 23:08:03 +08:00
|
|
|
|
<li>修改配置:设置 -> 工具 -> // Show Comment Global/Project
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>外部注释:</h3>
|
2022-08-06 05:00:21 +08:00
|
|
|
|
<a href="https://gitee.com/LinWanCen/show-comment/tree/main/src/test/java/io/github/linwancen/plugin/show/demo/ext">示例(Gitee)</a>
|
2022-10-23 15:21:30 +08:00
|
|
|
|
:比如你要给 .go 的文件配置文件注释可以放在相同目录或父目录的 xxx.go.tree.tsv 中
|
2022-04-06 23:08:03 +08:00
|
|
|
|
<ul>
|
|
|
|
|
|
<li>重新加载:工具 -> "🔄 // Reload External Comment"
|
|
|
|
|
|
<li>path/[any][filename.]ext.tree.tsv // 文件(夹)注释 📝 📁
|
|
|
|
|
|
<li>path/[any][filename.]ext.key.tsv // 切割关键字与注释
|
|
|
|
|
|
<li>path/[any][filename.]ext.doc.tsv // 词注释
|
|
|
|
|
|
<li>key.tsv 的每一行将会用`|`连接起来形成正则表达式,较长的关键字应该放在前面,用 `?` 开头排除
|
2022-06-08 23:15:14 +08:00
|
|
|
|
<li>doc 文件夹可以替换任何一层文件夹,可以像 SQL 那样用 % 模糊匹配,文件夹名为 -1 时在上一层文件夹生效
|
2022-04-06 23:08:03 +08:00
|
|
|
|
<li>在搜索弹出窗中修改 tsv 文件将不会被重加载
|
|
|
|
|
|
<li>tsv 配置文件必须能被搜索(Ctrl + Shift + N)
|
2022-03-07 23:58:57 +08:00
|
|
|
|
</ul>
|
2022-10-23 15:21:30 +08:00
|
|
|
|
|
2022-12-11 22:09:44 +08:00
|
|
|
|
<h2>我的其他项目</h2>
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
<li>查找多个文件或行的作者与导出搜索:
|
|
|
|
|
|
<a href="https://plugins.jetbrains.com/plugin/20557-find-author">Find Author</a>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
2022-10-23 15:21:30 +08:00
|
|
|
|
如果对你有所帮助,别忘了给本项目
|
|
|
|
|
|
<a href="https://github.com/LinWanCen/show-comment">GitHub</a>
|
2022-12-11 22:09:44 +08:00
|
|
|
|
主页一个 Star,您的支持是项目前进的动力。
|
2022-02-11 00:23:01 +08:00
|
|
|
|
]]></description>
|
|
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<!-- please see https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html
|
|
|
|
|
|
on how to target different products -->
|
2022-10-30 18:34:23 +08:00
|
|
|
|
<depends>com.intellij.modules.platform</depends>
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<depends optional="true" config-file="java.xml">com.intellij.modules.java</depends>
|
|
|
|
|
|
<depends optional="true" config-file="sql.xml">com.intellij.database</depends>
|
|
|
|
|
|
<depends optional="true" config-file="js.xml">JavaScript</depends>
|
|
|
|
|
|
<depends optional="true" config-file="python.xml">com.intellij.modules.python</depends>
|
|
|
|
|
|
<depends optional="true" config-file="go.xml">org.jetbrains.plugins.go</depends>
|
|
|
|
|
|
<depends optional="true" config-file="kotlin.xml">org.jetbrains.kotlin</depends>
|
|
|
|
|
|
<!--suppress PluginXmlValidity, MybatisMapperXmlInspection -->
|
|
|
|
|
|
<!--<depends optional="true" config-file="cs.xml">com.intellij.modules.rider</depends>-->
|
2022-02-11 00:23:01 +08:00
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<applicationListeners>
|
|
|
|
|
|
<listener class="io.github.linwancen.plugin.show.ext.conf.ConfFileListener"
|
|
|
|
|
|
topic="com.intellij.openapi.vfs.newvfs.BulkFileListener"/>
|
|
|
|
|
|
<listener class="io.github.linwancen.plugin.show.ext.conf.ConfFileChangeListener"
|
|
|
|
|
|
topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
|
|
|
|
|
|
</applicationListeners>
|
2022-04-06 23:08:03 +08:00
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<projectListeners>
|
|
|
|
|
|
<listener class="io.github.linwancen.plugin.show.ext.conf.ConfFileInitListener"
|
|
|
|
|
|
topic="com.intellij.openapi.project.ProjectManagerListener"/>
|
|
|
|
|
|
</projectListeners>
|
2022-04-06 23:08:03 +08:00
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<extensions defaultExtensionNs="com.intellij">
|
|
|
|
|
|
<editor.linePainter implementation="io.github.linwancen.plugin.show.LineEnd"/>
|
|
|
|
|
|
<projectViewNodeDecorator implementation="io.github.linwancen.plugin.show.Tree"/>
|
|
|
|
|
|
<defaultLiveTemplates file="/liveTemplates/show-comment-doc.xml"/>
|
|
|
|
|
|
<defaultLiveTemplates file="/liveTemplates/show-comment-xml.xml"/>
|
2022-02-11 00:23:01 +08:00
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<applicationConfigurable parentId="tools"
|
|
|
|
|
|
instance="io.github.linwancen.plugin.show.settings.AppSettingsConfigurable"
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.settings.AppSettingsConfigurable"
|
|
|
|
|
|
displayName="// Show Comment Global"/>
|
|
|
|
|
|
<applicationService serviceImplementation="io.github.linwancen.plugin.show.settings.AppSettingsState"/>
|
|
|
|
|
|
<projectConfigurable parentId="tools"
|
|
|
|
|
|
instance="io.github.linwancen.plugin.show.settings.ProjectSettingsConfigurable"
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.settings.ProjectSettingsConfigurable"
|
|
|
|
|
|
displayName="// Show Comment Project"/>
|
|
|
|
|
|
<projectService serviceImplementation="io.github.linwancen.plugin.show.settings.ProjectSettingsState"/>
|
|
|
|
|
|
</extensions>
|
2022-02-11 00:23:01 +08:00
|
|
|
|
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<actions>
|
|
|
|
|
|
<action
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.ext.conf.ReLoadExtDocAction"
|
|
|
|
|
|
class="io.github.linwancen.plugin.show.ext.conf.ReloadExtDocAction"
|
|
|
|
|
|
text="🔄 // Reload External Comment">
|
|
|
|
|
|
<add-to-group group-id="ToolsMenu"/>
|
|
|
|
|
|
</action>
|
|
|
|
|
|
<action
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.ext.conf.ResetExtDocAction"
|
|
|
|
|
|
class="io.github.linwancen.plugin.show.ext.conf.ResetExtDocAction"
|
|
|
|
|
|
text="🆑 // Clear External Comment">
|
|
|
|
|
|
<add-to-group group-id="ToolsMenu"/>
|
|
|
|
|
|
</action>
|
|
|
|
|
|
<action
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.LineEndCopy"
|
|
|
|
|
|
class="io.github.linwancen.plugin.show.LineEndCopy"
|
|
|
|
|
|
text="// Copy With Line Comment">
|
|
|
|
|
|
<add-to-group group-id="EditorPopupMenu" anchor="after"
|
|
|
|
|
|
relative-to-action="CopyReference"/>
|
|
|
|
|
|
</action>
|
|
|
|
|
|
<action
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.CopyReferenceSimple"
|
|
|
|
|
|
class="io.github.linwancen.plugin.show.CopyReferenceSimple"
|
2022-10-27 03:15:33 +08:00
|
|
|
|
text="Copy Class.Method / File:Line">
|
2022-10-23 20:24:25 +08:00
|
|
|
|
<add-to-group group-id="EditorPopupMenu" anchor="after"
|
|
|
|
|
|
relative-to-action="CopyReference"/>
|
|
|
|
|
|
</action>
|
|
|
|
|
|
<action
|
|
|
|
|
|
id="io.github.linwancen.plugin.show.LineEndAdd"
|
|
|
|
|
|
class="io.github.linwancen.plugin.show.LineEndAdd"
|
|
|
|
|
|
text="// Add Line Comment">
|
|
|
|
|
|
<add-to-group group-id="ProjectViewPopupMenu" anchor="last"/>
|
|
|
|
|
|
</action>
|
|
|
|
|
|
</actions>
|
2022-02-11 00:23:01 +08:00
|
|
|
|
</idea-plugin>
|