vscode easy less plugin and Settings. json settings

liwandong0612 注册会员
2023-02-28 08:38

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:

  1. 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.
  2. 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.
  3. 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.

About the Author

Question Info

Publish Time
2023-02-28 08:38
Update Time
2023-02-28 08:38

Related Question






Mac版 vscode在学习过程中终端找不到任何命令