赞
踩
apt-get install python-software-properties
add-apt-repository ppa:webupd8team/sublime-text-3
apt-get update
apt-get install sublime-text-installer
打开 Preferences -> Settings - Default and Preferences -> Settings - User,编辑如下:
{
// Determines what character(s) are used to terminate each line in new files.
// Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
// 'unix' (LF only).
"default_line_ending": "unix",
// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "all",
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": true,
// The encoding to use when the encoding can't be determined automatically.
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
"fallback_encoding": "UTF-8",
// Columns in which to display vertical rulers
"rulers": [80],
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": true
}
依次选择Preferences -> Package Control and Preferences -> Package Settings
即使不安装其他的包也要安装SideBarEnhancements sublime默认的文件管理很烂,SideBarEnhancements使其增色不少。
这个是代码注释的,输入/** 然后按Tab,就可以补全。
/**
* Without DocBlockr, Sublime Text will not auto-complete this sort of
* comment block.
*/
不像Sublime Text 2 版本, SublimeLinter现在拆分成一个核心框架和每一个语言包。所以需要安装SublimeLinter 和SublimeLinter-jshint两个。
用SublimeLinter 使用JSHint 当然需要在你的系统安装 NodeJS 和 the JSHint package。安装NodeJS可以通过源码安装,也可以通过windows installer 安装。安装完成之后通过NPM安装 JSHint 。
sudo npm install -g jshint
Configure the operation of JSHint in Sublime Text by using .jshintrc files: put them into your project, nesting in directories as needed. Where you must have exceptions for specific files, you can use inline JSHint settings in comments.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。