zoukankan      html  css  js  c++  java
  • sublime text2 css格式化插件

    插件下载地址:https://gist.github.com/2863474

    插件,可以将CSS格式化成一行,也可以将一行格式化成多行。

    下载解压缩之后,将compact_expand_css_command.py放到

    *Sublime Text 2PackagesUser  [windows下一般在安装盘/用户:例:C:UsersxwAppDataRoamingSublime Text 2PackagesUser]

    然后,重启一下st2,选择Preferences>Key Bindings - User

    加入以下代码:

    { "keys": ["ctrl+shift+]"], "command": "compact_expand_css", "args": { "action": "expand" } },
    { "keys": ["ctrl+shift+["], "command": "compact_expand_css", "args": { "action": "compact" } }

    保存,现在再试一下就OK啦!

    个人常用对Key的习惯性配制

    [
    { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
    { // Emmet: Zencoding
    "keys": [
    "ctrl+enter"
    ],
    "command": "expand_as_you_type",
    "context": [
    {
    "operand": false,
    "operator": "equal",
    "match_all": true,
    "key": "setting.is_widget"
    },
    {
    "match_all": true,
    "key": "emmet_action_enabled.expand_as_you_type"
    }
    ]
    },
    { "keys": ["ctrl+alt+o"], "command": "alignment" },
    { "keys": ["ctrl+shift+]"], "command": "compact_expand_css", "args": { "action": "expand" } },
    { "keys": ["ctrl+shift+["], "command": "compact_expand_css", "args": { "action": "compact" } }
    ]

  • 相关阅读:
    选校总结
    位运算
    剑指
    机器学习之梯度下降法
    leetcode1348 Tweet Counts Per Frequency
    UVA10308 Roads in the North 树的最长路径
    负数的处理POJ1179Polygon
    Roadblocks
    Bus Stop
    蒜头君的城堡之旅(动态规划)
  • 原文地址:https://www.cnblogs.com/ahwu/p/3677815.html
Copyright © 2011-2022 走看看