当前位置: 首页 > news >正文

sublime配置文件

key - Bindings-User:个人对于快捷键的设置。同样会覆盖默认的设置
Settings-User:个人对于sublime_text的定制

{
    "spell_check": true, //启用拼写检查
    "caret_style": "phase",  // 使光标闪动更加柔和
    "draw_minimap_border": true, // 右侧缩略图边框
    "font_size": 12, // 字体大小
    "highlight_line": true, // 当前行标亮
    "save_on_focus_lost": true, // 当前行标亮
    "word_wrap": true, //自动换行
    "trim_trailing_white_space_on_save": true, //自动移除行尾多余空格
    "ensure_newline_at_eof_on_save": true, //文件末尾自动保留一个空行
    "disable_tab_abbreviations": true, //禁用 Emmet 的 tab 键功能(请使用 ctrl+e)
    "translate_tabs_to_spaces": true, //把代码 tab 对齐转换为空格对齐
    "tab_size": 4, //空格数
    "fade_fold_buttons": true, //显示代码块的倒三角
    "bold_folder_labels": true, //侧边栏文件夹加粗
    "auto_find_in_selection": true //开启选中范围内搜索
}

SideBarEnhancements

Side Bar.sublime-menu设置鼠标打开浏览器的方式(右键某html,js,css等文件,找到Open With 然后点击Edit Applications)

[
    {"id": "side-bar-files-open-with",
        "children":
        [

            {
                "caption": "Chrome",
                "id": "side-bar-files-open-with-chrome",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
                            //Chrome浏览器的路径 Windows中,后缀为.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },
            {
                "caption": "Firefox",
                "id": "side-bar-files-open-with-firefox",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe",
                            //火狐浏览器的路径 Windows中,后缀为.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },

            {
                "caption": "IE",
                "id": "side-bar-files-open-with-ie",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "C:/Program Files/Internet Explorer/iexplore.exe",
                            //Safari浏览器的路径 Windows中,后缀为.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },

            {
                "caption": "Safari",
                "id": "side-bar-files-open-with-safari",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "D:/Program Files (x86)/Safari/Safari.exe",
                            //Safari浏览器的路径 Windows中,后缀为.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },

           
            {
                "caption": "Opera",
                "id": "side-bar-files-open-with-opera",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "D:/Program Files/Opera/launcher.exe",
                            //Safari浏览器的路径 Windows中,后缀为.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            }


        ]
    }
]

Default (Windows).sublime-keymap 设置打开浏览器的快捷键(Key Bindings - User)

{ "keys": ["ctrl+shift+1"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+2"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+3"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "C:/Program Files/Internet Explorer/iexplore.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+4"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "D:/Program Files (x86)/Safari/Safari.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+5"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "D:/Program Files/Opera/launcher.exe",
        "extensions":".*" //any file with extension
    }
}

HTML-CSS-JS Prettify

HTMLPrettify.sublime-settings(首先,在菜单栏里点击Preferences点击Package Settings,然后进入HTML/CSS/JS Prettify菜单,找到HTML/CSS/JS Prettify菜单下的set 'node' path,用Sublime Text打开进行更改windows对应的值,就是安装的node的路径)

{
  // Simply using `node` without specifying a path sometimes doesn't work :(
  // https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
  // http://nodejs.org/#download
  "node_path": {
    "windows": "D:/Program Files/nodejs/node.exe",
    "linux": "/usr/bin/nodejs",
    "osx": "/usr/local/bin/node"
  },

  // Automatically format when a file is saved.
  "format_on_save": false,

  // Only format the selection if there's one available.
  "format_selection_only": true,

  // Log the settings passed to the prettifier from `.jsbeautifyrc`.
  "print_diagnostics": true
}

相关文章:

  • 性能测试之手机号码python生成方式
  • centos7 安装 keepalived
  • nginx访问http80端口跳转https443端口
  • 10.6 监控io性能;10.7 free;10.8 ps;10.9 查看网络状态;10.10 抓包
  • shell $$ 的详解
  • Struts1.x 跨站脚本(XSS)漏洞的解决
  • 综合应用WPF/WCF/WF/LINQ之三十:代码生成器之DBMLToDAL
  • Cocos Creator 音频API控制调频
  • OpenGL ES 之对各种坐标系统的记录理解
  • Git 仓库结构 (二)***
  • 使用WCF Test Client(WcfTestClient.exe) 来测试WCF
  • Internet Connectivity Evaluation Tool
  • CCF201412-2 Z字形扫描 java(100分)
  • [SoftGrid 系列] Microsoft SoftGrid Server 安装篇
  • 只有rman的备份文件恢复过程
  • 实现windows 窗体的自己画,网上摘抄的,学习了
  • ECMAScript6(0):ES6简明参考手册
  • iOS仿今日头条、壁纸应用、筛选分类、三方微博、颜色填充等源码
  • Java 多线程编程之:notify 和 wait 用法
  • Java超时控制的实现
  • Redux 中间件分析
  • Storybook 5.0正式发布:有史以来变化最大的版本\n
  • ViewService——一种保证客户端与服务端同步的方法
  • vue-cli在webpack的配置文件探究
  • WinRAR存在严重的安全漏洞影响5亿用户
  • 纯 javascript 半自动式下滑一定高度,导航栏固定
  • 基于MaxCompute打造轻盈的人人车移动端数据平台
  • 解析带emoji和链接的聊天系统消息
  • 力扣(LeetCode)56
  • 爬虫模拟登陆 SegmentFault
  • 前端存储 - localStorage
  • 前端之Sass/Scss实战笔记
  • 我的zsh配置, 2019最新方案
  • 我建了一个叫Hello World的项目
  • 详解NodeJs流之一
  • 移动端高清、多屏适配方案
  • (7)STL算法之交换赋值
  • (BFS)hdoj2377-Bus Pass
  • (day 12)JavaScript学习笔记(数组3)
  • (javascript)再说document.body.scrollTop的使用问题
  • (八)五种元启发算法(DBO、LO、SWO、COA、LSO、KOA、GRO)求解无人机路径规划MATLAB
  • (附源码)springboot 个人网页的网站 毕业设计031623
  • (三)Hyperledger Fabric 1.1安装部署-chaincode测试
  • (三维重建学习)已有位姿放入colmap和3D Gaussian Splatting训练
  • (原)本想说脏话,奈何已放下
  • (转)linux自定义开机启动服务和chkconfig使用方法
  • (转)拼包函数及网络封包的异常处理(含代码)
  • (转)自己动手搭建Nginx+memcache+xdebug+php运行环境绿色版 For windows版
  • .htaccess配置重写url引擎
  • .NET Core跨平台微服务学习资源
  • .net6+aspose.words导出word并转pdf
  • .NET国产化改造探索(三)、银河麒麟安装.NET 8环境
  • .net解析传过来的xml_DOM4J解析XML文件
  • .NET开源项目介绍及资源推荐:数据持久层
  • /3GB和/USERVA开关