设置phpstorm sass监听器

简介:
 

Creating a File Watcher


PhpStorm provides a common procedure and user interface for creating File Watchers of all types. The only difference is in the predefined templates you choose in each case.


  1. Make sure the File Watchers plugin is enabled. The plugin is bundled with PhpStorm and activated by default. If it is not, enable the plugin. See Enabling and Disabling Plugins for details.

  2. To start creating a File Watcher, open the Settings dialog box by choosing File | Settings on the main menu, and then click File Watchers under the Tools node. The File Watchers pagethat opens, shows the list of File Watchers that are already configured in the project.

  3. Click the Add button new.png or press Alt+Insert. Depending on the tool you are going to use, choose the appropriate predefined template from the pop-up list:

  • Less

  • Sass

  • SCSS

In the Program text box, specify the path to the compiler executable file or archive depending on the chosen predefined template.If you installed the Sass and SCSS tools through Ruby, PhpStorm locates the required files itself at <ruby_home>/bin/sass.bat <ruby_home>/bin/scss.bat respectively and fills in the field automatically. Otherwise, type the path manually or click the Browse button  and choose the file location in the dialog box that opens.
  • lessc.cmd for Less If you installed the tool through the Node Package Manager, PhpStorm locates the required file itself at <node.js_home>/node_modules/bin/lessc.cmdand fills in the field automatically. Otherwise, type the path manually or click the Browsebutton browseButton.png and choose the file location in the dialog box that opens.

  • sass.bat for Sass

  • scss.bat for SCSS

Proceed as described on page Using File Watchers.

本文转自 陈小龙哈 51CTO博客,原文链接:
http://blog.51cto.com/chenxiaolong/1702873

相关文章
|
PHP
phpstudy集成环境设置环境变量启用PhpStorm中的命令行工具的解决方案
phpstudy集成环境设置环境变量启用PhpStorm中的命令行工具的解决方案
321 0
PhpStorm:设置注释符缩进位置和等号对齐
PhpStorm:设置注释符缩进位置和等号对齐
298 0
PhpStorm:设置注释符缩进位置和等号对齐
PhpStorm:设置注释符缩进位置和等号对齐
PhpStorm:设置注释符缩进位置和等号对齐
569 0
PhpStorm:设置注释符缩进位置和等号对齐
关于PhpStorm设置点击编辑文件自动定位源文件
关于PhpStorm设置点击编辑文件自动定位源文件
220 0
关于PhpStorm设置点击编辑文件自动定位源文件
关于PhpStorm设置点击编辑文件自动定位源文件
关于PhpStorm设置点击编辑文件自动定位源文件
252 0
关于PhpStorm设置点击编辑文件自动定位源文件
【PhpStorm】设置代码自动折行
【PhpStorm】设置代码自动折行
275 0
【PhpStorm】设置代码自动折行
【PhpStorm】配设置注释不在当前位置开始
【PhpStorm】配设置注释不在当前位置开始
196 0
【PhpStorm】配设置注释不在当前位置开始
【PhpStorm】设置快捷代码片段
【PhpStorm】设置快捷代码片段
385 0
【PhpStorm】设置快捷代码片段
phpstorm设置文件和函数头部注释
phpstorm设置文件和函数头部注释
431 0
phpstorm设置文件和函数头部注释
【phpstorm】设置live templates时指定光标的位置
【phpstorm】设置live templates时指定光标的位置
383 0