---
title: "前端工具-Sublime Text 2"
author: "小丑鱼0703"
date: "2015-03-02T17:28:16Z"
tags: []
categories: ["Web前端"]
slug: "sublime-text-2"
draft: false
lastmod: "2015-03-25T16:09:36Z"
id: 2188056
url: "https://wangjingyi.iteye.com/blog/2188056"
---

**新建窗口**
   command + N

**大小写切换**

   大写：command K + command U 
   小写：command K + command L

**多行编辑**
 
  选中多行，按下Command+Shift+L  ----------   可以同时编辑这些行，类似UE中的列模式 
  选中文本，按下Command+D ----------- 可以继续向下同时选中下一个相同的文本进行同时编辑 
  选中文本，按下control + Command +G  可以一次性选择全部相同的文件进行同时编辑

**控制TAB按键转换的空格数**

   View ------  Indentation 进行设置
![](http://dl2.iteye.com/upload/attachment/0106/3004/b1ce469c-6b5d-3711-8d27-7475e813fb23.png)

更多快捷键介绍请见：<http://lucifr.com/2011/09/10/sublime-text-2-useful-shortcuts/>
相关插件介绍：<http://www.qianduan.net/essential-to-sublime-the-text-2-plugins.html>

    下载格式化插件<span style="color:blue"> **JsFormat**</span> 插件包：<https://github.com/jdc0589/JsFormat>
插件包放到sublime安装目录的Data\Packages目录中,重新打开sublime就能使用js格式化插件

使用方法：
1、快捷键：ctrl+alt+f
2、先用快捷键打开命令面板 “ctrl + shift + p”, 再输入 “Format: Javascript” 就可以使用格式化命令