天天看點

IDEA使用配置和優化

1.代碼自動完成 忽略大小寫

IDEA使用配置和優化
IDEA使用配置和優化

例如:輸入au,可提示Autowired

配置:Editor>General>Code Completion ---- Case sensitive completion: None

IDEA使用配置和優化

更新:IDEA 2019版,設定發生改變

IDEA使用配置和優化

2.自動生成serialVersionUID

搜尋 Serialization

IDEA使用配置和優化

3.顯示行号

搜尋 numbers

IDEA使用配置和優化

4.設定檔案編碼為UTF-8,并将屬性檔案ASCII碼自動轉換成中文字元

全局設定:File -> Other Settings -> Settings for New Projects

IDEA使用配置和優化

目前項目設定:

方式一 —— 快捷鍵:ctrl+alt+s       打開設定

方式二 —— 菜單:File->Settings   打開設定