How to make '>' not a single line
See original GitHub issueide: 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:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
But I have to say that only vue users will met this problem since single-line text content really shouldn’t be wrapped.
@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.