sublime 插件安装packagecontrol

https://packagecontrol.io/installation

第一步:

Installation

Simple

The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.

Sublime Text 3 Sublime Text 2

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

This code creates the Installed Packages folder for you (if necessary), and then downloads the Package Control.sublime-package into it. The download will be done over HTTP instead of HTTPS due to Python standard library limitations, however the file will be validated using SHA-256.

Warning: Please do not redistribute the install code via another website. It will change with every release. Instead, please link to this page.

第二步:

sublime text安装

进入提供的相关环境sublime Text目录,点击运行

调出installpackage界面

ctrl + shift + p
install package

常用工具包

AdvancedNewFile
Djaneiro
Emmet
less
sass
Git
Side Bar
HTML/CSS/JS Prettify
Python PEP8 Autoformat
SublimeCodeIntel
ColorPicker
OmniMarkupPreviewer

相关包简介

常用包使用说明

AdvancedNewFile 可以创建文件,也可以连目录和文件都创建 win+alt+n

Djaneiro django一些语法快速补齐功能,参考如下 https://packagecontrol.io/packages/Djaneiro

Emmet 快速缩写html,tab补齐,

代码简写扩展神器 ul#test>li*4 Ctrl+e展开上述指令

html:5    补齐html
p.foo     补齐class
p#foo     补齐id
>         子元素符号,表示嵌套的元素
+         同级标签符号
^         可以使该符号前的标签提升一行

Git 集成git ctrl+shift+p 输入git

Side Bar 折叠目录树 ctrl+k ctrl+b

HTML/CSS/JS Prettify 格式化代码 鼠标右键,从里面选

Python PEP8 Autoformat 格式化python代码 ctrl+shift+r

SublimeCodeIntel 自动匹配补全代码 ctrl+f3 调到变量定义的地方

ColorPicker 屏幕拾色器 ctrl+shift+c

ConvertToUTF8 直接在菜单栏中可以转,专为中文设计

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lxw1844912514

你的打赏就是对我最大的鼓励

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值