更新时间: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)
cd projectname\sass
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
cd projectname\sass
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