iT邦幫忙

2021 iThome 鐵人賽

DAY 6
0
自我挑戰組

才30天?一個月學會Android開發系列 第 6

Day-06 如何不分大小寫/自動引入

  • 分享至 

  • twitterImage
  •  

本期想介紹Android Studio上兩個實用技巧,使程式撰寫時能夠事半功倍完成。

1. 代碼提示不分大小寫
     Step1-點擊File/Settings
https://ithelp.ithome.com.tw/upload/images/20210919/20141950cq77MASQmr.png
     Step2-展開Editor➞展開General➞點擊Code Completin,將Match case勾選取消,
        按Apply後再按OK即設定完成
https://ithelp.ithome.com.tw/upload/images/20210919/20141950fTIbJDMEeZ.png

2. 自動引入功能
     Step1-點擊File/Settings
https://ithelp.ithome.com.tw/upload/images/20210919/20141950ZuiwXy7X5l.png
     Step2-展開Editor➞展開General➞點擊Auto Import,將Insert imports on paste選為Always,勾選
        Add unambiguos imports on the fly及Optimize imports on the fly,按Apply後再按OK即設定完成
https://ithelp.ithome.com.tw/upload/images/20210919/201419505dGcjVhj9G.png

以上內容感謝收看!


上一篇
Day-05 問題與解決
下一篇
Day-07 建立/開啟/移除專案
系列文
才30天?一個月學會Android開發30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言