• Sublime 笔记


    1. 安装PackageControl

    官网:https://packagecontrol.io/

    v2:
    import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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')
    
    v3:
    import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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)

    2. 安装soda主题

    1 Ctrl+Shift+P 打开命令窗口
    2 ip 打开包管理器
    3 theme soda 找到soda主题
    4 在Setting-User中添加
    5 v2:
    6 "theme": "Soda Light.sublime-theme"
    7 v3:
    8 "theme": "Soda Light 3.sublime-theme"

    3.添加到右键菜单

    到SublimeText3的安装目录,创建文本文件然后重命名为:sublime_addright.inf,复制以下代码,然后右击安装就可以了

     1 [Version]
     2 Signature="$Windows NT$"
     3 
     4 [DefaultInstall]
     5 AddReg=SublimeText3
     6 
     7 [SublimeText3]
     8 hkcr,"*\shell\SublimeText3",,,"用 SublimeText3 打开"
     9 hkcr,"*\shell\SublimeText3\command",,,"""%1%sublime_text.exe"" ""%%1"" %%*"
    10 hkcr,"DirectoryshellSublimeText3",,,"用 SublimeText3 打开"
    11 hkcr,"*\shell\SublimeText3","Icon",0x20000,"%1%sublime_text.exe, 0"
    12 hkcr,"DirectoryshellSublimeText3command",,,"""%1%sublime_text.exe"" ""%%1"""

    4.常用配置

    {
    	"font_size": 11,
    	"hot_exit": false,
    	"ignored_packages":
    	[
    		"Vintage"
    	],
    	"remember_open_files": false,
    	"draw_minimap_border": true,
    	"always_show_minimap_viewport": true,
    	"word_wrap": true,
    	"theme": "Soda Light 3.sublime-theme"
          "show_encoding": true,
          "show_line_endings": true,
    }
    

      

  • 相关阅读:
    VUE中引入zTree
    如何获取别人提供的接口,获取他接口里面的数据。
    com.fasterxml.jackson.databind.exc.InvalidDefinitionException
    2.Elasticsearch环境安装配置
    1.Elasticsearch概述
    Java中如何操作Redis
    基于Redis实现分布式锁
    Mybatis插件--数据库读写分离
    Mybatis插件--自定义分页
    7. Mybatis日志
  • 原文地址:https://www.cnblogs.com/juzii/p/5390961.html
Copyright © 2020-2023  润新知