温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

sublime汉化

发布时间:2020-07-23 14:34:51 来源:网络 阅读:474 作者:iTa_伊塔 栏目:开发技术

sublime text 3 汉化菜单方法

https://packagecontrol.io/installation


The simplest method of installation is through the Sublime Text console. 

最简单的安装插件的方法。

The console is accessed via the ctrl+` shortcut 

使用快捷键  ctrl + `  打开控制台

or the View > Show Console menu. 

或者使用 View > Show Console  菜单打开控制台

Once open, paste the appropriate Python code for your version of Sublime Text into the console.

打开后,复制下面的代码到控制台,并运行。

(这个是 sublime 3 的)

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)


(这个是subliem 2的)

import urllib2,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')


之后

Preferences  >  package control   或者使用快捷键 ctrl+shift+p 打开插件管理器

找到 install package 选项,点击之后进入插件查找窗口,输入 Chinese 找到 有语言翻译的那个插件,安装完事。。

向AI问一下细节
推荐阅读:
  1. Zabbix汉化
  2. subline汉化

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI