Android Studio / IntelliJ IDEA:
換行自動對齊(和上一行保持一致):
editor--〉code style--〉
選中: detect and use existing fileindnets for editing
去掉 use tab character
去掉:keep indents on empty lines
Notepad++:
設置 -> 首選項 -> 制表符設置
怎樣設置EditPlus中Tab用空格替換
http://jingyan.baidu.com/article/63f236280bbd690208ab3d3d.html
-
打開EditPlus軟件,點擊菜單【Tools】——【Preferences...】,如下圖:
-
在打開的Preferences窗口中選擇【Setting&syntax】,然后在右邊的【File types】框中選中要將Tab使用空格替換的文件類型(我選擇java文件),然后點擊【Tab/Indent】按鈕。如下圖:
-
在打開的Tab and Indent窗口中輸入Tab的大小,和Indent大小,兩個值設置成一樣大。然后將【Insert spaces instead of tab】勾中,點擊【Ok】按鈕,如下圖:
-
Sublime Text:
Preferences -> Settings - User:
"tab_size": 4,
"translate_tabs_to_spaces": true,
eclipse:
Window -> Preferences -> Editors -> Text Editors:
Beyond Compare:
工具 -> 文件格式 -> 新建 -> 文本格式 -> 確認
左側:
名字:shell,bat,rc,mk,makefile,ini,config
右側通用選項卡:
過濾:*.sh;*.bat;*.rc;*.mk;*makefile;*.ini;*.cfg
右側雜項選項卡: