A
A
altai20132018-04-01 12:07:22
css
altai2013, 2018-04-01 12:07:22

How to force Visual Studio Code to format selected block CSS, LESS, SASS, Javascript?

Literally the basic functionality of the VS Code editor is required: to be able to align and comb the code in the selected block, but after 2 days of searching, I still could not achieve this with any extensions. Installed ESLint - it only works with Javascript. Put stylefmt , - when selecting any block that is not completed with brackets, instead of formatting, it displays the error "CssSyntaxError", which completely kills the work. Put styleint and Pretiier, they gave nothing at all: when I try to format a block of code, I get a message: "the formatter for less files is not installed." Is there any adequately working formatter for the main popular files (js, less, scss, css) for front-end development to install and use?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
archelon, 2018-04-01
@archelon

beautify: https://marketplace.visualstudio.com/items?itemNam...
everything works for me as it should

V
Violetta Morozova, 2018-05-10
@vilka_2009

I understand that the issue has already been resolved. But I'm wondering if the standard vsc functionality will help you with this task? 5af41fb5684b3125872753.pngHere you need to check the box.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question