ADT(Eclipse)的一些常规设置及其它

一、修改字体

    1、JAVA代码

        Windwow-Preferences-General-Apperance-Colors and Fonts,选择右侧的Java-Java Editor Text Font,点击Edit按钮。

    2、XML文件代码

        Windwow-Preferences-General-Apperance-Colors and Fonts,选择右侧的Basic-Text Font,点击Edit按钮。

 

二、修改背景颜色

    1、背景颜色

        Windwow-Preferences-General-Editors-Text Editors,点击Text Editors,在右侧,选择Background color;

        取消勾选System Default,点击颜色按钮,进入选色板。

        例如,豆沙绿:色调-85,饱和度123,亮度205。

 

三、代码格式化

    1、自动格式化默认换行行宽

        默认是80,如果需要修改(特别是大屏显示器),可以添加新的宽度。

        Windwow-Preferences-Java-Code Style,展开,选择Formatter;

        点击New,创建个新的样式,命名后,就可以设置了;

        选择Line Wrapping,把默认的80修改下,如100、120或者60都行。

 

四、注释样式

    1、类注释添加时间

        Windwow-Preferences-Java-Code Style,展开,选择Code Templates;

        如果添加自定义的时间,比如@Date的话,可以这样:

        选择Comments-Type,点击Edit按钮;

        在弹出框中,添加如下语句:@Date ${date} ${time}

 

你可能感兴趣的:(eclipse,adt)