idea設置單行註釋格式(包括配置文件)

idea中文件單行註釋默認在行首位置ide

 

 

 修改方法:進入File-->Settings-->Editor-->Code Style-->Java,修改Code Generationidea

 

 

 

 去掉Line comment at first column前的對勾,選中Add a space at comment start,選中第二個是爲了讓//和註釋中間加一個空格,而後點擊Apply便可spa

 

 

配置文件註釋:File-->Settings-->Editor-->Code Style-->XML,去掉Line comment at first column前的對勾blog

 

相關文章
相關標籤/搜索