• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
LA椰子
博客园    首页    新随笔    联系   管理    订阅  订阅
Sublime Text3 插件收录

收录常用的Sublime Text3 插件, 方便安装使用,免得每次一个个的搜, 欢迎补充

安装方法直接打开install package 搜索安装

1. Babel

  支持react jsx语法

2. Pretty JSON

  json 格式化

3. ConvertToUTF8

  编码转换

4. Cmd Caller

  在当前文件目录打开终端

  设置: 打开Preference->Package Settings-->Cmd Caller-->Settings

  然后添加设置如下:

{
  "windows": {
    "default": "Git",
    "apps": {
      "Git": {
        "name": "Run Git.exe Here",
        "cmd": "D:\\Program Files\\Git\\git-bash.exe --cd=\"${file_path}\""
      },
      "CMD": {
        "name": "Run cmd.ext Here",
        "cmd": "cmd.exe /s /k pushd \"${file_path}\""
      }
    }
  }
}

  使用: 查看Preference->Package Settings-->Cmd Caller-->Key Bindings 按照设置的快捷键操作即可, 或者自己修改

 5. Terminal

  打开终端的工具,具体搜索安装即可, 具体使用配置,查看https://github.com/wbond/sublime_terminal#examples

 6. Emmet

  前端开发必备代码提示补全插件

7. AutoFileName

  引入文件时自动提示文件路径下的所有文件

 

 

 

 

前端类函数组件跳转设置:

Preference-->Browse Packages..

打开目录后找到User目录下文件:  Default (Windows).sublime-mousemap

如果没有, 就新建一个文件命名为: Default (Windows).sublime-mousemap

然后文件内添加内容如下:

[
  {
    "button": "button2",
    "count": 1,
    "modifiers": [
      "ctrl"
    ],
    "command": "jump_back"
  },
  {
    "button": "button1",
    "count": 1,
    "modifiers": [
      "ctrl"
    ],
    "press_command": "drag_select",
    "command": "goto_definition"
  }
]

 添加后可通过Ctrl + 鼠标左右键 实现跳转和回跳

  Mac 的配置, 配置文件名为: Default (OSX).sublime-mousemap

[
  {
    "button": "button1",
    "count": 1,
    "modifiers": [
      "option"
    ],
    "command": "jump_back"
  },
  {
    "button": "button1",
    "count": 1,
    "modifiers": [
      "command"
    ],
    "press_command": "drag_select",
    "command": "goto_definition"
  }
]

  配置后即可通过command + 鼠标单击 跳转, 或者option + 鼠标点击 实现回跳

个人博客: https://lanxy.top
posted on 2019-12-06 18:24  LA椰子  阅读(942)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3