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

All Questions

Tagged with
0 votes
1 answer
57 views

Prettier rule to break all html elements inside a block the same way

I am using default NextJS eslint rules and have prettier activated in VS Code. I am pretty sure this is a prettier configuration but basically when I am templating, I want all HTML elements inside a ...
mchl18's user avatar
  • 2,287
1 vote
0 answers
58 views

Does anybody know how to avoid this weird format in VS Code?

I made an HTML file and when I saved it, the formatting happens, but it adds those white spaces and line jumps for whatever reason. I uninstalled VS Code and all the extensions that I had to have a ...
Roberto Gutiérrez's user avatar
1 vote
0 answers
124 views

How do I user Prettier on Laravel Blade?

Quick question, how do I use Prettier to prettify the PHP file with HTML source code in it? So, here's my index.blade.php file <!doctype html> <html lang="en"> <head> &...
SirGhazian's user avatar
-2 votes
1 answer
77 views

Prettier formatting [closed]

When im formatting, it shows error SyntaxError: Unexpected closing tag "a". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/...
Allayy's user avatar
  • 3
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
2 votes
2 answers
94 views

Prettier replaces single quote character with &quot; when used inside double quotes | Angular .html files

I have applied angular-eslint in my angular package. I have also added prettier configurations. The prettier is changing the single quotation mark to &quote; symbol. How can I fix that The code ...
Maria Ali's user avatar
-1 votes
1 answer
45 views

Looking for a specific Prettier option

Looking for a Prettier option. I'm trying to figure out if there is a possibility to format code like this and not wrap the first attribute to a new line: <div class="test-class" [...
TyaTyauzer's user avatar
-1 votes
1 answer
88 views

How do I configure prettier to not separate my attributes onto new lines and not separate my opening bracket and closing bracket?

Before I state any of my problems this is my .prettierrc file so far { "semi": true, "useTabs": true, "tabWidth": 4 } Problem 1: I would like my prettier to ...
MrGod1y's user avatar
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
-4 votes
1 answer
53 views

How do you disable the addition of / at the end of a single tag in Prettier in VS Code in HTML?

How do you disable the addition of / at the end of a single tag in Prettier in VS Code in HTML? How do you disable the addition of / at the end of a single tag in Pr ettier in VS Code in HTML How do ...
Vlad Tkach's user avatar
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
0 answers
42 views

How to re-format HTML (in vscode) to remove unnecessary line breaks after every tag

I know that most code formatters have config to prevent breaking on <b>, <i> etc tags, but I cannot figure out what to do if the disaster already happened and I want to go back from 1000 ...
alparius's user avatar
0 votes
0 answers
87 views

How to avoid line spacing on prettier?

Below are the code that I want it to be: Click here to open the image Here is what it will be after I save it (refactored with prettier): Click here to open the image How do I configure the ...
Amanee Johny's user avatar
0 votes
2 answers
200 views

VSCode - indenting adds spaces around strings

I am using Vue 3 & Prettier w/ VS Code. Whenever I have a string on it's own line, it gets formatted how I want it. The problem... My Dev Tool browser renders strings with spaces around them. I ...
Sam Britt's user avatar
-1 votes
1 answer
211 views

How to prevent Prettier from braking my lines

I am using VScode Prettier pluging to format my code, im facing a problem where prettier brakes my lines of code. for example this code <p>{text.replace(/\n/g, " ").split(' ').filter(...
GhostInYourPants's user avatar

15 30 50 per page
1
2 3 4 5
7