STS下载设置字典

作者: 元虚成 | 来源:发表于2018-07-31 16:42 被阅读0次

作为一个java开发,哪种IDE更好,需要自己去尝试下,自己喜欢哪种哪种对于自己就是最好的。

1. 下载地址:http://spring.io/tools/sts/legacy

本次选择的是 spring-tool-suite-3.9.4.RELEASE-e4.7.3a-win32-x86_64.zip

2. 安装SVN插件

https://dl.bintray.com/subclipse/releases/subclipse/4.2.x/

只需要安装着一个插件,git和maven都安装好了

3. 配置maven

preferences-》maven

4.配置jdk

preferences-》Java-》instainstalled jres

把默认的jre换成JDK,否则启动maven项目会报错

并添加参数 -Dmaven.multiModuleProjectDirectory=$M2_HOME

顺便引入JDK原文件

5.修改字体背景等

字体:preferences-> general->appdearance->colors and fonts->basic->text font

选择字体 Inconsolata 14 Bold

背景色:preferences-> general->editors->text editors ->backgroud color

把色调调成:85 饱和度调成:123 亮度调成205 即可调成豆沙绿色了 然后点确定确定

6.修改控制台文件颜色

调出控制台,右键修改菜单,为深绿色

7.代码提示修改

  Java-》editor-》content assist

触发条件:.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

调整代码提示顺序及其他-点开下一级advanced

把template proposals 和  Java proposals 放在最前面

8.关闭拼写检查

preferences-> general->editors->text editors ->spelling

9.文件默认编码设置

preferences-> general->workspace 

text file encoding  :UTF-8

new text file line delimiter unix (tab 变空格)

10.优化启动速度

startup and shutdown -》全部关掉

11.关闭自动更新

install/update 关闭

12.自动类注释

注释模板:Java-》code style-》code templates

先勾线下面 自动类和方法注释 的复选框

编辑commonts-types:

/**

* @Description: ${todo}

* @author ${user}或直接写名字

* @date ${date}  ${time}

* ${tags}

*/

@date 这一行可以改成:${currentDate:date('yyyy-MM-dd HH:mm')}

13.代码格式化不换行

Java代码 Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认120

Html代码 Window->Preferences->Web-> Html Files->editor->Line width->默认72

14.去除不用的菜单和按钮

Windows-》Perspective-》customize Perspective

15.git常用设置

error.log里会报一个HOME环境变量的警告,设置了一下不成功,不过不设置也没问题

还可以把警告的提示关了 Team > Git > Confirmations and Warnings

user.email:

user.name:

http.sslVerify : false

core.autocrlf : fasle(是否转换换行符LF)

core.excludesFile : E:\git\gitignore(全局忽略文件)

ignore文件内容例子

参考:https://blog.csdn.net/u010297957/article/details/53222406

16.修改文件默认打开方式    

需要修改两个地方

Perspective-》General 》Editors 》File Associations

17.忽略一些HTML文件中的报错

18.eclipse程序正确但是cannot be resolved to a type

大概是这样的:机制所致。因为某些特殊原因,eclipse没能自动编译源代码到build/classes(或其他classes目录),导致类型查找不到。

可能就是因为是来自另一个项目的原因导致的。

以下是解决的方法:

Windows–>Preferences–>Java–>Compiler–>Building–>Output folder–>

 勾选 Rebuild class files modified by others

19.一直indexing jar types,0%

Preferences->Java->Editor->Content Assist->Advanced 

把Jar Type Search 去掉就好了

相关文章

网友评论

    本文标题:STS下载设置字典

    本文链接:https://www.haomeiwen.com/subject/aeuhvftx.html