question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to make '>' not a single line

See original GitHub issue

ide: VSCODE

extention: vetur

setting.json:

"vetur.format.defaultFormatterOptions": {
  "prettyhtml": {
    "printWidth": 120, // No line exceeds 100 characters
  }
}

source:

<el-tree ref="tree" show-checkbox :data="treeData" :default-expanded-keys="[1]" node-key="id"  :props="{ children: 'subList', label: 'name' }">{{someData}}</el-tree>

after format:

<el-tree
  ref="tree"
  show-checkbox
  :data="treeData"
  :default-expanded-keys="[1]"
  node-key="id"
  :props="{ children: 'subList', label: 'name' }"
  >{{someData}}</el-tree>

i hope get:

<el-tree
  ref="tree"
  show-checkbox
  :data="treeData"
  :default-expanded-keys="[1]"
  node-key="id"
  :props="{ children: 'subList', label: 'name' }"
  >
  {{someData}}
</el-tree>

thank you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Mister-Hopecommented, Nov 10, 2019

But I have to say that only vue users will met this problem since single-line text content really shouldn’t be wrapped.

0reactions
StarpTechcommented, Mar 4, 2020

@Mister-Hope just to clarify: This project isn’t for vuejs only. I created it due to the missing HTML support in prettier. Today, prettier has great support and the power to maintain it. The core principle of this formatter is to stick with rules which are reasonable in terms of readability and shouldn’t be controlled by a style guide like eslint-plugin-vue which is always opinionated.

I’m looking for new maintainers. If you have a strong interest to support this project feel free to contact me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Single-space the lines in a document - Microsoft Support
Single -space part of a document. Select the paragraphs you want to change. Go to Home > Line and Paragraph Spacing Line and...
Read more >
restrict edittext to single line - android - Stack Overflow
I want to make the above EditText to have only single line. Even if the user presses "enter" the cursor should not get...
Read more >
Is there a way to reformat a multi-line list into a single line, and ...
So, switch to single line is pretty simple, select lines and press ctrl + shift + j (already discussed here). To split a...
Read more >
Convert multi lines to single line with spaces and quotes
It can be done with awk awk '{printf("\"%s\" ",$0)} END { printf "\n" }' databases.txt. Output: "Wp_new" "Frontend DB" "DB_EXT".
Read more >
How to make all data in one line | Notepad++ Community
How to make all data in one line · Open your file in Notepad++ · Open the Replace dialog ( Ctrl + H...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found