且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何添加指南针语法支持到Jetbrains PhpStorm?

更新时间:2023-09-12 11:34:16

这是马丁的答案的解释。

It's explanation of Martin's answer. Symlink to compass gem directory in your sass folder works great.

指令(Windows)

Instruction(Windows)


  1. 使用管理员权限打开cmd

  2. 更改项目sass文件夹的路径,例如 cd projectname\sass

  3. 运行 mklink / d compass $ GEM_LOCATION\frameworks\compass\stylesheets\compass ,对我来说$ GEM_LOCATION = C:\dev\Ruby200\lib\ruby\gems\2.0.0\gems\compass-0.12.2

  1. open cmd with admin privileges
  2. change path to your project sass folder, for example cd projectname\sass
  3. run mklink /d compass $GEM_LOCATION\frameworks\compass\stylesheets\compass, as for me $GEM_LOCATION = C:\dev\Ruby200\lib\ruby\gems\2.0.0\gems\compass-0.12.2

这就是所有,现在PhpStorm不会突出罗盘mixins作为错误,并将它们添加到自动完成建议。

Thats all, now PhpStorm will not highlight compass mixins as errors, and will add them in autocomplete suggestions.

警告:如果要删除已创建的符号链接,请勿使用delete,它将删除源目录。
打开具有管理员权限的cmd, cd $ yourProjectSassPath ,并运行 rmdir compass

Warning: If you want to delete created symlink DON'T use delete, it will remove source directory. open cmd with admin privileges, cd $yourProjectSassPath, and run rmdir compass