[英]How to have eclipse add line comments at the indent instead at the beginning of the line?
在一行或多行代碼上運行Toggle Comment時,Eclipse 在行首添加注釋 ( // )。 是否可以讓 Eclipse 添加代碼縮進的行注釋?
這可以通過運行Source > Format來解決,但如果在 Toggling Comment 時可以自動完成,那就太好了。
一種解決方法是讓 Eclipse 自動進行格式化:您可以通過“保存操作”首選項啟用此功能。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.