sublime C++配置

插件:

解析json pretty json,ctrl + alt + j解析 ctrl + alt + m还原

旁栏Side​Bar​Enhancements

括号匹配BracketHighlighter

旁栏颜色SyncedSidebarBg

行末多余空格TrailingSpaces

主题 material theme

选中高亮Color Highlighter

安装Package Control 网址https://packagecontrol.io/installation#st3

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)

 

c++ 按ctrl + B 编译显示cmd :https://blog.csdn.net/gl486546/article/details/78208634?tdsourcetag=s_pctim_aiomsg

{
    "encoding": "utf-8",
    "working_dir": "$file_path",
    "shell_cmd": "g++ -Wall -std=c++11 \"$file_name\" -o \"$file_base_name\"",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "selector": "source.c++",

    "variants": 
    [
        {   
        "name": "Run",
            "shell_cmd": "g++ -Wall -std=c++11 \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
        }
    ]
}

 

posted @ 2019-05-29 10:57  啦啦啦天啦噜  阅读(543)  评论(0编辑  收藏  举报