Sublime
Preferences
-> Settings - User
{
"draw_white_space": "all",
"font_face": "YaHei Consolas Hybrid",
"font_size": 11.0,
"tab_size": 2,
"translate_tabs_to_spaces": true
}
- Sublime Text 2 設置文件詳解
VS2010
Tools
-> Options
-> Environment
-> Fonts and Colors
-> Font = YaHei Consolas Hybrid // 等寬字體
-> Text Editor
-> All Languages
-> Tabs
-> Tab size = 2, Indent size = 2 // 縮進爲4
Insert spaces // Tab爲空格
Edit
-> Advanced
-> View White Space // 顯示空白符
File
-> Advanced Save Options
-> Encoding: Unicode (UTF-8 without signature) – Codepage 65001
Line endings: Unix (LF)
- UTF-8 without BOM
- How to: Manage Files By Using Encoding
CmdOutput
Tools
-> External Tools
-> Add
-> Title: CmdOutput
Command: %systemroot%\system32\cmd.exe
Arguments: /c $(TargetPath)
Use Output window: checked
QtCreator
Tools
-> Options
-> Text Editor
-> Font & Colors
-> Family = YaHei Consolas Hybrid // 等寬字體
-> Behavior
-> Tab policy: Space Only
Tab size: 2
Indent size: 2
-> Display
-> Display right margin at column: 80
Visualize whitespace // 顯示空白符
-> C++
-> Copy/Edit
-> Code Style
-> Tab policy: Space Only
Tab size: 2
Indent size: 2
-> File Naming
-> Header suffix: h
Source suffix: cc
-> Qt Quick
-> Copy/Edit
-> Code Style
-> Tab policy: Space Only
Tab size: 2
Indent size: 2
- Indenting Text or Codem
Eclipse
Project
-> Build Automatically // 取消自動編譯(我的習慣)
-> Clean...
-> Clean projects selected below // 選此(我的習慣)
Start a build immediately // 取消(我的習慣)
Windows
-> Preferences
-> General
-> Appearance
-> Colors and Fonts
-> Basic
-> Text Font
-> Font = YaHei Consolas Hybrid // 等寬字體
-> Editors
-> Text Editors
-> Insert spaces for tabs
Show whitespace characters // 顯示空白符(工具條有快捷鍵)
-> Workspace
-> Text file encoding = UTF-8 // 文件編碼 (不一樣工做環境)
New text file line delimiter = Unix // 新建文件的行分隔符 (不一樣工做環境)
-> Content Types // 不一樣文件的默認編碼
-> Java
-> Code Style
-> Formatter
-> Edit/New
-> Indentation
-> Tab policy = Spaces only // Tab爲空格
Indentation size: 2 // 縮進大小爲2
Tab size: 2 // Tab大小爲2
-> Line Wrapping
-> Maximum line width = 80 // 最大行字符數
-> Comments
-> disable all // 禁用註釋格式化(我的習慣)
-> Installed JREs = JDK路徑 // Ant編譯時須要javac
-> Ant
-> Editor
-> Formatter
-> Tab size: 2 // Tab大小爲2
Use tab character instead of spaces // 取消
-> C/C++
-> Code Style
-> Edit/New
-> Identation
-> Tab policy = Spaces only // Tab爲空格
Indentation size: 2 // 縮進大小爲2
Tab size: 2 // Tab大小爲2
-> Indexer
-> Enable indexer
-> JavaScript
-> Code Style
-> Formatter
-> Edit/New
-> Identation
-> Tab policy = Spaces only // Tab爲空格
Indentation size: 2 // 縮進大小爲2
Tab size: 2 // Tab大小爲2
-> Comments
-> disable all // 禁用註釋格式化(我的習慣)
-> Web
-> CSS Files
-> Editor
-> Indent using spaces // 縮進爲空格
Indentation size = 2 // 縮進爲2
-> HTML Files
-> Editor
-> Indent using spaces // 縮進爲空格
Indentation size = 2 // 縮進爲2
- Eclipse全UTF-8的環境
- 在eclipse.ini的-vmargs下面加上「-Dfile.encoding=UTF-8」
- eclipse-->Window-->Preferences-->General-->Workspace-->Text file encoding-->UTF-8
- Installed JREs-->Default VM Arguments:-->-Dfile.encoding=UTF-8
- eclipse-->Run-->Run Configurations-->Arguments-->VM arguments-->-Dfile.encoding=UTF-8
- eclipse-->Run-->Run Configuration-->Common 頁籤-->Console Encoding-->Others-->UTF-8