Sublime Text Build 3126 x64 安装

1 篇文章 0 订阅
1 篇文章 0 订阅

Sublime Text Build 3126 x64 安装

今天安装这个,弄了一天,遇到了一大堆问题,各种尝试,终于弄好了,找了很多资料,怕后期自己会遗忘,所以特地记录下来,希望能给于东同样问题的人一些帮助:

  • 下载Sublime Text Build 3126 x64

  • 配置packageControl

  • 配置Emment

  • 配置pyv8


下载Sublime Text Build 3126 x64

下载官网:https://www.sublimetext.com/3
此处下载的是压缩版得。

这里写图片描述

配置packageControl

(1)官方的安装 packageControl的方法是,菜单->view->show console.
然后粘贴一下内容:
参考网站:https://packagecontrol.io/installation

import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; 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)

但是本小编运行一直报错,无法进行下去,百度以后,可以自己上网下载packageControl并且放到 Sublime Text Build 3126 x64\Data\Packages目录下。
下载地址:https://github.com/wbond/package_control
如图:

这里写图片描述

(2)重启sublime test3后,出现如下两个选项,则代表配置正确。
这里写图片描述

配置Emment

使用上面配置的Package Control 下载Emmet:
选择 【菜单-> Preferences -> Package Control】,弹出:

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

一般Emmet都可以正常安装,但是安装Emmet时,会自动联网安装Pyv8,一般都会失败,报如下图的错误:
这里写图片描述

配置pyv8

解决方法是:手动下载 Pyv8插件。
https://github.com/emmetio/pyv8-binaries

(1)将下载以后的Pyv8,如:pyv8-win64-p3.zip
直接解压,文件夹依然保持 pyv8-win64-p3 这个名字。
(2)找到Data\Installed Packages目录,进入到 Installed Packages中,新建文件夹:PyV8。(必须要让 PyV8 文件夹与 Emmet 文件在一个目录,亲测,没问题,小编在这里碰了很多次壁,重要的事情说三遍:而不是Packages,而不是Packages,而不是Packages)。
感谢:http://www.tuicool.com/articles/qI7nYbU 这个文章的做作者。

如图:
这里写图片描述

这里写图片描述

菜单->Preferences->Key Bindings - User加上以下代码(keys就是触发自动补全的按键,可自定义)

[{
  "keys": [
    "tab"
  ],
  "args": {
    "action": "expand_abbreviation"
  },
  "command": "run_emmet_action",
  "context": [{
    "key": "emmet_action_enabled.expand_abbreviation"
  }]
}, {
  "keys": ["tab"],
  "command": "expand_abbreviation_by_tab",
  "context": [{
    "operand": "source.js",
    "operator": "equal",
    "match_all": true,
    "key": "selector"
  }, {
    "key": "preceding_text",
    "operator": "regex_contains",
    "operand": "(\\b(a\\b|div|span|p\\b|button)(\\.\\w*|>\\w*)?([^}]*?}$)?)",
    "match_all": true
  }, {
    "key": "selection_empty",
    "operator": "equal",
    "operand": true,
    "match_all": true
  }]
}]

验证是否成功:
输入 : div>ul
这里写图片描述

按: ctrl + e,如下图所示:
这里写图片描述

终于成功啦~!

因为网络原因下载极慢。windows64本在此分享~ 今天发布的3124, Release Date: 22 September 2016 See also the Blog Post Settings now open in a new window, with the default and user settings side-by-side Hovering over a symbol will show a popup indicating where it's defined. This is controlled with the show_definitions setting. Build errors are now shown inline at the location where they occurred. This is controlled with the show_errors_inline setting. Added a menu item and command palette entry to install Package Control Various syntax highlighting improvements Significant improvements to the Scala syntax definition, with thanks to djspiewak and gwenzek Significant improvements to the LaTeX syntax definition, with thanks to randy3k Improved Goto Definition performance when a large number of files are open Minor improvements to file load times Linux and OSX: Improved memory usage Fixed Replace not working as expected in conjunction with regex look behinds Fixed build systems being unable to use "file_patterns" with the exec command Corrected tab overlap on HiDPI Windows and Linux configurations OSX: Fixed a graphical glitch when switching tabs OSX: Fixed crash when entering a surrogate pair via hex input Linux: Improved rendering performance for some systems File encoding of open files is now stored in the session Build Systems may define a cancel command using the "cancel" key Syntax: Added clear_scopes directive, to give more control over the generated scopes Color Schemes: Added popupCss key, for defining default popup style sheets Color Schemes: Added phantomCss key, for defining default phantom style sheets minihtml: HiDPI support was added for Windows and Linux minihtml: Windows style line endings and single quoted attributes are now supported minihtml: Child selectors may now be used in style sheets minihtml: The inherit CSS value has been implemented minihtml: font-family stacks may now be used minihtml: Support for the line-height CSS property was added minihtml: Elements may now be relatively positioned minihtml: Inline elements support padding and background-color set minihtml: CSS variables and the var() function are now supported minihtml: Added the CSS color functions color() (partial), rgb(), rgba(), hsl() and hsla() minihtml: Fixed a stack overflow on Windows with too many unclosed tags API: Added Phantom and PhantomSet API: Added ViewEventListener API: Added View.is_primary() API: Added EventListener.on_hover(view, point, hover_zone) API: Added functions to get and set visibility of the minimap, status bar, tabs and menu API: Modifications to a selection are now constrained to the valid range API: Updated Python 3.3 to commit 8e3b9bf917a7, and SQLite to 3.14.1 Packages: Loading packages will no longer abort if a .sublime-package is corrupt Packages: Fixed an edge case when loading third party packages from unicode paths on Windows
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值