diff --git a/apps/IntelliJ IDEA/IntelliJ IDEA常用设置.md b/apps/IntelliJ IDEA/IntelliJ IDEA常用设置.md index 3d45d4f..f7882b4 100644 --- a/apps/IntelliJ IDEA/IntelliJ IDEA常用设置.md +++ b/apps/IntelliJ IDEA/IntelliJ IDEA常用设置.md @@ -12,3 +12,122 @@ +## 设置鼠标滚轮控制文字大小 + +`File->Settings->Editor->General->change font size with Ctrl+Mouse Wheell in:` + +选择 Active editor 仅作用于当前的窗口 + +选择 All editors 作用所有的窗口 + +![image-20240107111816430](assets/image-20240107111816430.png) + +## 设置Java文件注释 + +`File->Settings->Editor->File and Code Templates->includes` + +```java +/** + * @author ds + * @since ${DATE} + */ +``` + +![image-20240107113228037](assets/image-20240107113228037.png) + +## 设置Java文件注释快捷键 + +`File->Settings->Editor->Live Templates—>Java` + +**新建快捷键cc** + +```java +/** + * @author ds + * @since $DATE$ + */ +``` + +![image-20240107114939198](assets/image-20240107114939198.png) + +**点击Edit Variables进行变量设置** + +![image-20240107115139716](assets/image-20240107115139716.png) + +## 设置mybatis xml文件模板 + +`File->Settings->Editor->File and Code Templates->Files->点击加号新建` + +**mapper** + +```xml + + + + + +``` + +![image-20240107113615287](assets/image-20240107113615287-17045985768623.png) + +**mapperUp** + +```xml + + + + + + + + + + + + + + + + + + SELECT REPLACE(NEWID(), '-', '') AS uuid + + insert into tabel + + + value + + + #{value} + + + + + update table + + + + + + + + + + + + select from table wherer uuid in + + #{uuid} + + + + +``` + +![image-20240107113638495](assets/image-20240107113638495.png) diff --git a/apps/IntelliJ IDEA/assets/image-20240107111816430.png b/apps/IntelliJ IDEA/assets/image-20240107111816430.png new file mode 100644 index 0000000..aaea976 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107111816430.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107113228037.png b/apps/IntelliJ IDEA/assets/image-20240107113228037.png new file mode 100644 index 0000000..69e9322 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107113228037.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107113610089.png b/apps/IntelliJ IDEA/assets/image-20240107113610089.png new file mode 100644 index 0000000..17ac2e0 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107113610089.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107113615287-17045985768623.png b/apps/IntelliJ IDEA/assets/image-20240107113615287-17045985768623.png new file mode 100644 index 0000000..17ac2e0 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107113615287-17045985768623.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107113615287.png b/apps/IntelliJ IDEA/assets/image-20240107113615287.png new file mode 100644 index 0000000..17ac2e0 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107113615287.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107113638495.png b/apps/IntelliJ IDEA/assets/image-20240107113638495.png new file mode 100644 index 0000000..77e2ba1 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107113638495.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107114939198.png b/apps/IntelliJ IDEA/assets/image-20240107114939198.png new file mode 100644 index 0000000..433323f Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107114939198.png differ diff --git a/apps/IntelliJ IDEA/assets/image-20240107115139716.png b/apps/IntelliJ IDEA/assets/image-20240107115139716.png new file mode 100644 index 0000000..f38f183 Binary files /dev/null and b/apps/IntelliJ IDEA/assets/image-20240107115139716.png differ diff --git a/apps/openvpn/linux开机自启.md b/apps/openvpn/linux开机自启.md index f97f59d..ddbad0e 100644 --- a/apps/openvpn/linux开机自启.md +++ b/apps/openvpn/linux开机自启.md @@ -20,6 +20,8 @@ WantedBy=multi-user.target ##刷新 sudo systemctl daemon-reload +#开启开机重启 +sudo systemctl enable openvpnclient.service ```