Skip to content

Commit

Permalink
feat: InsertClass 插入 class 时不再添加缩进。
Browse files Browse the repository at this point in the history
  • Loading branch information
gucovip committed Aug 31, 2022
1 parent ddeedd9 commit c77480b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ windows: `Alt + insert`, Mac: `control + Enter`
注意:可以在 keymap 中配置自己喜欢的快捷键,后续如果可以将默认自动设置好快捷键(InsertClass: command + \; PasteCss: control + option + v)。

#### 最近更新
* 2022.08.31 InsertClass 插入 class 时不再添加缩进。如果还需要缩进,可以下载 2.0.7 版本。
* 2022.08.4 2.0.7 兼容到 223 版本
* 2022.04.13 2.0.6 兼容到 221 版本
* 2021.12.09 2.0.5 修复新版本 213 不可见的问题。
Expand Down Expand Up @@ -65,6 +66,7 @@ windows: `Alt + insert`, Mac: `control + Enter`
QQ:11563928

#### 更新日志
* 2.1.0 InsertClass 插入 class 时不再添加缩进。如果还需要缩进,可以下载 2.0.7 版本。
* 2.0.7 兼容到 223 版本
* 2.0.6 兼容到 221 版本
* 2.0.5 修复新版本 213 不可见的问题。
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

pluginGroup = vip.guco.stylusassist
pluginName = Stylus Assist
pluginVersion = 2.0.7
pluginVersion = 2.1.0

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 202
pluginUntilBuild = 223.*
pluginUntilBuild = 300.*

# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/InsertClassAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void actionPerformed(AnActionEvent anActionEvent) {
}

String insertClass = "." + Utils.formatClass(selectedText);
String preInsertString = "\n " + insertClass + "\n \n";
String preInsertString = "\n" + insertClass + "\n \n";
Document document = editor.getDocument();
int endTag = allContent.indexOf("</style>");
if (endTag == -1) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<id>vip.guco.stylusassist</id>
<name>Stylus Assist</name>
<version>2.0.6</version>
<version>2.1.0</version>
<vendor email="[email protected]" url="https://github.com/gucovip/stylus-assist">MaiYa</vendor>

<description><![CDATA[
Expand Down Expand Up @@ -41,6 +41,7 @@

<change-notes><![CDATA[
<ul>
<li>2.1.0 InsertClass 插入 class 时不再添加缩进。</li>
<li>2.0.7 兼容到 223 版本</li>
<li>2.0.6 兼容到 221 版本</li>
<li>2.0.5 修复新版本 213 不可见的问题</li>
Expand Down

0 comments on commit c77480b

Please sign in to comment.