Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
12 views

Prettier setting to preserve space for prettier table formatting

I made a table const transitions: any = [ /* fromState event toState callback */ t(States.zombie, Events.click, States.walk, ()=>animation("walk&...
nerkn's user avatar
  • 1,945
0 votes
1 answer
39 views

Preventing HTML Attribute Wrapping Using Formatting

I'm having an issue with code formatting, where the attributes of HTML tags are being wrapped to new lines when I format the code. This makes it difficult to read HTML tags. Is there a way to prevent ...
kien's user avatar
  • 3
0 votes
0 answers
52 views

Prettier - How to format HTML files as expected, in a Django project

I have difficulties in formatting HTML files as expected. Here are some of them: (1) Expectation (before being saved): {% extends "admin/base.html" %} {% block title %}{{ title }} | {{ ...
marc's user avatar
  • 159
0 votes
0 answers
15 views

how to config prettier

automatic prettier,make my code like this.Anti-human! <v-footer :absolute="!fixed" app ><span>&copy; {{ new Date().getFullYear() }}</span></v-footer &...
397927031qqcom's user avatar
0 votes
1 answer
383 views

Why does prettier add an extra pair of parentheses here?

I was trying to format a block of code like this one: let [a, b] = [64n, 2n]; do { console.log(a); } while (a /= b); I found that prettier adds an extra pair of parentheses around the while ...
Mr. X's user avatar
  • 738
0 votes
1 answer
62 views

Format JavaScript vscode code to be like java in eclipse

I have code formatted like this subRedirect() { let features = this.config.get('features') if (features !== null) { features.forEach(feature => { ...
Mahmoud Elkafrawy's user avatar
0 votes
0 answers
32 views

Top level setting is overriding file specific setting in VSCode

I have this user settings.json for VSCode (v1.82.0) { "editor.tabSize": 3, // Top-level value. "[javascript]": { "editor.tabSize": 2, }, "[json]&...
Kev's user avatar
  • 113
0 votes
0 answers
50 views

Is there a way to ignore certain formatting lines with Prettier, VSCode and CSS/sass/less? [duplicate]

I'm using VSCode and working with CSS/scss files. I use Prettier to format my code on save, but there is one thing I would like not to format. Avoiding multiple selectors for a declaration to be ...
echayotte's user avatar
3 votes
0 answers
859 views

Prettier not respecting singleAttributePerLine setting in prettierrc config

I am using Prettier for formatting my HTML code, and I'm encountering an issue where Prettier continues to break the attributes onto new lines, even though I have explicitly set singleAttributePerLine ...
Rich's user avatar
  • 4,178
0 votes
0 answers
39 views

HTML <a> tag configuration

My code looks like this after being saved. <div class="links"> <a href="#">Forget Password</a><a href="#">Forget Password</a ...
newborn16's user avatar
0 votes
0 answers
889 views

VSCode/eslint/prettier does not auto-format _app.tsx file on save

I have a fairly extensive eslint/prettier config. Normally it works great, but today I noticed that for some reason my _app.tsx file does not auto-format the same as other pages. In this case, it's ...
Kraken's user avatar
  • 5,664
1 vote
0 answers
441 views

Wrong formatting on save on VSCode

VSCode started to format my code in the wrong way. E.g. I set it to use single quotes but VSCode changes it to double quotes on save. I’ve disabled all extensions which could format code except for ...
Polina Prokofieva's user avatar
2 votes
0 answers
149 views

Format Document - Configure prettierrc like built in formatter of VSCode

I like to format documents with VSCode built-in features, which are convenient, don't depend on extensions, simplicity, and have suitable functionality of these built-in. For example, this is a React ...
Huy Pham's user avatar
  • 447
0 votes
1 answer
65 views

error msg setting editor preferences, format on save, format on paste for Prettier - unable to write into user settings. How do I correct this, pls?

Installed Prettier. Want to set preferences to format on paste and save but getting error message - unable to write into user settings. Please open the user settings to correct errors/warnings in it ...
VEA's user avatar
  • 1
0 votes
1 answer
568 views

Change C# formatting braces in VScode

When working on my C# project in VScode, prettier, the extension, doesnt apply the same formatting that it uses in other languages which I prefer. It doesn't format my code which is where I want my ...
Jacob tern's user avatar

15 30 50 per page