Beautify inline review

Asked

Viewed 143 times

3

I am using the extension Beautify in Vscode to better organize my code, however I found a problem and I did not find the solution, it always plays the comment to next line. How to fix this?

/*Antes:*/
margin: 0; /* retira a margem e o espaço entre os elementos */

/*Depois:*/
margin: 0;
/* retira a margem e o espaço entre os elementos */

  • Don’t use it? Have some settings in it?

  • So, Maniero, I like this extension to properly devise and organize my code, but that’s her only problem and I can’t fix it. Yes, it has configuration.

  • Maybe this is some config of Vscode itself and not Beautify after a search...

  • This is a configuration of Beautify itself, I was looking here in GIT extension. He will have to look for an alternative way for this behavior to work. Who knows looking for another extension.

1 answer

-1

Good morning Hardel,

I’m going to go into a little bit of detail about this problem, and what I researched. Recent versions of Beautify will not allow comment in the same line in your CSS (I don’t know in other versions). I used "this" version.

I noticed that the beautify extension has a configuration that can be configured to break lines like the "html.format.endWithNewline": false however for the comment you need within the CSS, it will not work because this extension was made to work this way(ie with this line break).

inserir a descrição da imagem aqui (No use configuring according to the image)

PS: About 9 months ago this add-on underwent the change below, it is possible that an old version can work the way you expect:

inserir a descrição da imagem aqui

PS: Anyway that’s a pretty common complaint on the Beautify forums. Then I would go to search for another extension if in fact it is necessary these comments in your code.

I hope I helped. Hugs!

  • Everyone, please, I would like to point out the comment regarding negativity. Because if you haven’t helped remove this query I did in Beutify’s GIT.

  • Nor did I deny you, but you tested your code? Cade the extension link in the Market Place of VS Code? How do you put this config to work on the extension inside VS Code for us to test?

  • Geremias, good morning! All right. I didn’t take the test in my code, I don’t use Beautify, but it looks like other complements I use. To make an adjustment in the settings you can follow this documentation: link , has a lot of cool things you can set in the settings of this add-on. :)

  • 1

    No offence, but that’s probably why you were negatively offended... if you test that you posted, you’ll see that it doesn’t work... http://prntscr.com/o6fu1a

  • 2

    Look there breaking line in the comment even with config, here at least does not work https://imgur.com/dcrIEtG

  • Thanks hugocsl for the feedback. I’ll try some alternative solution and post Aja around here editing the topic.

  • Hugo actually doesn’t work, I’ve circled all the extension settings and nothing. But I evaluated the code in git and actually that behavior was implemented on purpose. PS: Thanks for the comments here! Hugs

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.