1.安装STS4
help-->Eclipse Maketplace-->search 'STS'-->install
2.代码提示
Window-->preferences-->java-->Editor-->content assist-->activation trigger for java
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@
3 startup and shutdown: 取消全部
5.Validation : disable all
6. General : Show heap status
7 取消拼写检查: General->Editors-->Test Editors-->Spelling
8.快捷键
Ctrl+1--->Alt+/
Word completion: Alt+/ -->Alt+w
9.修改内存
sudo vi /opt/sts/SpringToolSuite4.ini
-startup plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1000.v20190125-2016 -product org.springframework.boot.ide.branding.sts4 --launcher.defaultAction openFile -vm /opt/jdk1.8.0_211/bin -vmargs -Dosgi.requiredJavaVersion=1.8 -Xss4m -Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM
1.
vi /home/smile/.m2/settings.xml
<?xml version="1.0"?>
<settings>
<localRepository>/home/smile/.m2/repository</localRepository><!--需要改成自己的maven的本地仓库地址-->
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>local private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</settings>