1.File --> Setting --> Editor --> General --> Virtual Space --> All placementof caret after end of line 取消勾選
2.File --> Setting --> Editor --> General --> Other --> Strip trailing spaces on Save 選擇 All
3.File --> Setting --> Editor --> General --> Other --> Always keep trailing on create line 取消勾選
--> Apply --> Ok