为Javascript 开发设置Sublime Text 3
来源:互联网 发布:2015年美国进出口数据 编辑:程序博客网 时间:2024/05/21 07:03
安装 Sublime Text 3
Ubuntu在线安装
apt-get install python-software-propertiesadd-apt-repository ppa:webupd8team/sublime-text-3apt-get updateapt-get install sublime-text-installer
配置 Sublime Text 用户设置
打开 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}
Install Package Control
依次选择Preferences -> Package Control and Preferences -> Package Settings
- 选择 Preferences -> Package Control.
- 选择 Install Package.
- 输入包名,然后从列表选择
安装 SideBarEnhancements
即使不安装其他的包也要安装SideBarEnhancements sublime默认的文件管理很烂,SideBarEnhancements使其增色不少。
安装 DocBlockr
这个是代码注释的,输入/** 然后按Tab,就可以补全。
/** * Without DocBlockr, Sublime Text will not auto-complete this sort of * comment block. */
安装SublimeLinter and Javascript Linter
不像Sublime Text 2 版本, SublimeLinter现在拆分成一个核心框架和每一个语言包。所以需要安装SublimeLinter 和SublimeLinter-jshint两个。
安装NodeJS 和JSHint
用SublimeLinter 使用JSHint 当然需要在你的系统安装 NodeJS 和 the JSHint package。安装NodeJS可以通过源码安装,也可以通过windows installer 安装。安装完成之后通过NPM安装 JSHint 。
sudo npm install -g jshint
在Project里通过 Project Basis设置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.
原文:Setting Up Sublime Text 3 for Javascript Development
- 为Javascript 开发设置Sublime Text 3
- sublime text 3 设置缩进为空格
- [Javascript]Sublime Text 3相关设置
- Sublime Text 3配置JavaScript开发环境
- 将Sublime Text 3设置为Python全栈开发环境
- 为 Sublime Text 3 设置 Python 的全栈开发环境
- 将Sublime Text 3设置为Python全栈开发环境
- Sublime Text 3 设置
- Sublime Text 3设置Tab自动转换为空格
- sublime text 设置为默认打开方式
- 为 Laravel 开发而配置的 Sublime Text 3
- 【原创】Sublime Text 3设置吊炸天PHP开发环境
- Sublime Text 3设置吊炸天PHP开发环境
- Sublime Text 3设置吊炸天PHP开发环境
- Sublime Text 3运行JavaScript
- sublime text 3 个人设置
- sublime text 3 常用设置
- Sublime Text 3 缩进设置
- [android开发]判断当前是否有网络
- 百度地图API-入门篇
- Unity 5宣布个人版免费!
- SQLSERVER 分布式事务开放
- SQL - 删除 重复数据
- 为Javascript 开发设置Sublime Text 3
- wince 在C#中 对datagrid 的数据添加
- nginx静态编译openssl并且使用gdb调试openssl
- 免费网管软件比较
- 什么叫信任?
- UISegmentedControl 整理
- [android开发] json格式 与javaBean, HashMap格式之间的转换, 网络请求时常用.
- Hbase merge multiple region
- ios招聘