比如說你想要在格式化代碼的時(shí)候讓縮進(jìn)變成兩格而不是四格,那么就需要進(jìn)行配置。
如何配置?
在項(xiàng)目中使用一個(gè)文件.editorconfig
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
http://editorconfig.org/
詳情可看鏈接或者在自行搜索相關(guān)配置項(xiàng)
配置完成后,重啟IDEA,生效。