diff --git a/java.code-snippets b/java.code-snippets index 9260a3f..a44c038 100644 --- a/java.code-snippets +++ b/java.code-snippets @@ -254,32 +254,6 @@ " */\n", ] }, - "JavaDoc for class": { - "scope": "java", - "prefix": "javadoc-class", - "body": [ - "/**", - " * ${1:$TM_FILENAME_BASE}", - " *", - " *
", - " * ${2:description}", - " *
", - " *", - " *", - " * NOTE: ${3:content}.", - " *
", - " * @author ${4:${6:ZhouXY}}", - " * @since $7", - " * @see $8", - " */", - ], - "description": "JavaDoc for class" - }, - "inheritDoc": { - "scope": "java", - "prefix": ["javadoc-inheritDoc", "doc-inheritDoc"], - "body": "/** {@inheritDoc} */" - }, "Jdbc Template": { "scope": "java", "prefix": "jdbc", diff --git a/javadoc.code-snippets b/javadoc.code-snippets index 31e9563..3d0c56e 100644 --- a/javadoc.code-snippets +++ b/javadoc.code-snippets @@ -2,8 +2,52 @@ "code": { "prefix": "@code", "body": [ - "{@code $TM_SELECTED_TEXT}" + "{@code ${1:$TM_SELECTED_TEXT}}" ], "scope": "java" - } -} + }, + "link": { + "prefix": "@link", + "body": [ + "{@link ${1:$TM_SELECTED_TEXT}}" + ], + "scope": "java" + }, + "author": { + "prefix": ["@author", "@auth"], + "body": [ + "@author ${1:ZhouXY108}${2: <${3:luquanlion@outlook.com}>}" + ], + }, + "JavaDoc for class": { + "scope": "java", + "prefix": [ + "javadoc-class", + "doc-class" + ], + "body": [ + "/**", + " * ${1:$TM_FILENAME_BASE}", + " *", + " *", + " * ${2:description}", + " *", + " *
",
+ " * NOTE: ${3:content}.",
+ " *",
+ " * @author ${4:ZhouXY108}${5: <${6:luquanlion@outlook.com}>}",
+ " * @since $7",
+ " * @see $8",
+ " */",
+ ],
+ "description": "JavaDoc for class"
+ },
+ "inheritDoc": {
+ "scope": "java",
+ "prefix": [
+ "javadoc-inheritDoc",
+ "doc-inheritDoc"
+ ],
+ "body": "/** {@inheritDoc} */"
+ },
+}
\ No newline at end of file
diff --git a/jspecify.code-snippets b/jspecify.code-snippets
new file mode 100644
index 0000000..998189e
--- /dev/null
+++ b/jspecify.code-snippets
@@ -0,0 +1,30 @@
+{
+ "Import all JSpecify annotations": {
+ "scope": "java",
+ "prefix": "jspecify-import-all",
+ "body": [
+ "import org.jspecify.annotations.*;",
+ ""
+ ],
+ "description": "import all JSpecify annotations"
+ },
+ "Import JSpecify annotations": {
+ "scope": "java",
+ "prefix": "jspecify-import",
+ "body": [
+ "import org.jspecify.annotations.Nullable;",
+ "import org.jspecify.annotations.NonNull;",
+ ""
+ ],
+ "description": "import JSpecify annotations"
+ },
+ "Import JSpecify annotations (Nullable)": {
+ "scope": "java",
+ "prefix": "jspecify-import-nullable",
+ "body": [
+ "import org.jspecify.annotations.Nullable;",
+ ""
+ ],
+ "description": "import JSpecify annotations (nullable)"
+ },
+}
diff --git a/mybatis-mapper.code-snippets b/mybatis-mapper.code-snippets
index e2b065d..2c69b7e 100644
--- a/mybatis-mapper.code-snippets
+++ b/mybatis-mapper.code-snippets
@@ -267,7 +267,7 @@
"/**",
" * Entity 和 Info 的父类",
" * ",
- " * @author ZhouXY",
+ " * @author ZhouXY108