the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > you in Settings. Json is configured in compiler options, You need to run the compile command when editing the.less file to compile the.css file and save it to the specified output directory.
-
If you add a style to your.less file and save it, but don't generate the corresponding.css file, it may be because you haven't executed the compile command yet. Here are some possible solutions:
- Check compilation options: Make sure you have configured compilation options correctly in the settings.json file, including less.pile and less.outputDir, as well as any other required options.
- Manually execute compile command: You can manually execute compile command to compile.less file into.css file. In the terminal, go to the directory where the.less file resides, and then run the lessc [filename].less [filename].css command to replace the filename with the actual names of your.less and.css files.
- Using VS Code plug-ins: You can use the Easy Less plug-in in VS Code or other similar plug-ins to automatically compile the.less file and save it to the specified output directory when editing it.
If none of the above fixes the problem, it is recommended that you check the output log or terminal output in VS Code to see if there are any errors or warning messages to help further diagnose the problem.