Like many little niggles this it takes more time debugging a problem than resolving it, so hopefully, this article will save some folks time by side-stepping it. Once the directory is marked as a Resource Root the imported SASS and JS resources (variables, functions, mixins, etc.) should resolve and be included in the autocomplete options. This is by right-clicking on the resource directory and selecting Mark Director as > Resource Root. The fix is really simple, all that’s needed is to explicitly mark the resource’s root directory as a Resources Route. It took me a little while to find the fix, so I thought I’d share it to save others the hassle. This didn’t stop them from compiling, but was very annoying, as it flagged the resources, onscreen as being unrecognised IntelliJ is an awesome IDE, but recently it stopped recognising imported SASS and JS resources. This article describes how to resolve the issue with IntelliJ not providing autocomplete for imported SASS and JS resources. Updated on August 28th, 2020 How to fix the issue with IntelliJ and PHPStorm not resolving SASS and JS Imports In general: you install compiler first and make sure that you can compile some very basic SCSS from the command line first (to ensure that it works). Originally published on December 17th, 2018 WebStorm Intellisense Windi CSS WebStorm Intellisense The support for WebStorm is on our roadmap, but we havent got enough bandwidth to work on it yet.
0 Comments
Leave a Reply. |