Ubuntu下配置Eclipse
在ubuntu 12.04下安装eclipse,使用如下命令
sudo apt-get install eclipse
安装完成后,需要配置 一下eclipse,使之更易用
配置其智能感应功能
选择 window --> preference --> Java ---> Editor --> Content Assist
在Auto Activation下配置 Auto Activation delays(表示你输入一个字母后智能感应的提示的延迟时间),默认是200ms, 可以改小一点,改成20
Auto Activation triggers for Java: 表示在输入以某个字母开头的字符时,智能感觉提示是这个字母形开头的函数或变量的字符,可以将它的值改成
.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
在window--> Preference --> Java --> Code Style --> Code Template --> Comments 可选择import,导入配置文件,即配置自动生成的注释文件的格式
在 window -->Preference --> Java --> Code Style --> Formatter可配置文件的格式.
去掉拼写检查: window --> preference --> General --> Editors -->Text Editors --> spelling -- Enable spell checking
windows上设置eclipse字体
设置字体: window -->preference -->General -->Appearance --> Colors and Fonts -- Java Editor Text Font --> 选择 Courier New 11
设置编码风格 window -->preference --> Java --> code style --> Formatter , 选择new 可新建一个Active profile