保存時自動格式化
在
setting >tools > file watchers
中點+
號,將go fmt
添加進去,保存時就會自動將代碼格式化
設置goland主題
選擇
setting > plugins
後,在輸入框中找到visual studio code dark plus theme
,安裝後重啓goland
在setting > color scheme
中設置visual studio code dark plus theme
主題
在setting > color scheme > color scheme font
中可以設置該主題對應的字體及字體大小
如果是採用cascadia code
字體,建議在enable font ligatures
勾上
如果想使用其它主題,流程類似
討厭的拼寫檢查
如果不想啓用拼寫檢查,可以在
setting > editor > inspections
中將spelling
取消勾選
如果想使用拼寫檢查,但有些提示很討厭,可以在彈拼寫檢查時,左鍵>more action
>save xxx to project-level dictionary
或在setting > editor > spelling
中在accepted words
中增加相應的單詞,這些被記錄的單詞將不會被拼寫檢查報錯