Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sublime新建代码片段,让hotcss更顺手 #7

Open
dctxf opened this issue Dec 28, 2015 · 4 comments
Open

Sublime新建代码片段,让hotcss更顺手 #7

dctxf opened this issue Dec 28, 2015 · 4 comments

Comments

@dctxf
Copy link

dctxf commented Dec 28, 2015

hotcss Sulime text 代码片段

在使用hotcss的过程中会经常输入px2remdata-dpr,你感觉麻烦吗?不要紧,sublime代码片段可以帮助你。

如何使用

Sass开发环境下

在使用此代码片段前,请保证您的sublime已安装scss插件,插件安装方法这里就不做解释了。还不会的童鞋请点击这里

  1. 先现在这两段代码片段

    px2rem 点击下载

    data-dpr 点击下载

  2. 打开sublime text,菜单栏找到preferences->Browse packages->user

  3. 把下载好的文件直接放进去就行了

  4. 尽情的撸码了!

Less开发环境下

同sass一样,请安装Less插件

  1. 同样下载这两段代码

    px2rem 点击下载

    data-dpr 点击下载

  2. 打开sublime text,菜单栏找到preferences->Browse packages->user

  3. 把下载好的文件直接放进去就行了

  4. 用sublime打开这两个文件

    <scope>source.scss</scope>
    //把上面这段话更改为
    <scope>source.less</scope>
    

拓展阅读

Sass篇

Sass官网

Sass教程

Less篇

Less官网

Less教程

@dctxf dctxf changed the title Sublime新建代码片段,让hotcss跟顺手 Sublime新建代码片段,让hotcss更顺手 Dec 28, 2015
@luohong123
Copy link

scsss

@Niofh
Copy link

Niofh commented Jan 19, 2017

怎么用stylus开发

@tianqing617
Copy link

上面的sublime代码片段有问题,正确的写法如下:
https://github.com/lhard66/base-snippets-sublime

@wangwen1220
Copy link

less/sass/stylus 通用

<snippet>
  <content><![CDATA[
px2rem(${1:value})
]]></content>
  <tabTrigger>px2rem</tabTrigger>
  <scope>source.less,source.sass,source.scss,source.stylus</scope>
</snippet>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants