Copy/Paste adds new line
See original GitHub issue- Operating System (+Version): Win10
- VS Code Version: 1.23.1
- beautify Version: 1.3.0
Provide the settings you use: .jsbeautifyrc
{
"indent_char": " ",
"indent_size": 2,
"preserve_newlines": true,
"end_with_newline": true,
"js": {
"allowed_file_extensions": ["ts", "js", "json", "jshintrc", "jsbeautifyrc"],
"space_before_conditional": true,
"space_after_anon_function": true,
"keep_function_indentation": true,
"keep_array_indentation": true,
"max_preserve_newlines": 2
}
}
Action performed
Copy selection (part of a line) -> insert selection somewhere
Expected results
Selection is inserted.
Actual results
Selection is inserted and a new line is added below the line where the selection was pasted.
When I deactivate Beautify Extension, it works as expected.
This issue is a copy of https://github.com/Microsoft/vscode/issues/49662 but as it seems to be an Beautify-related issue I added the issue here.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
paste text with a newline/return in formatted text - Stack Overflow
To get a new line (or return) we use \n . So addr = paste(name, address, cityState, sep="\n"). To view the result just...
Read more >Copy/Paste in WSL terminal adds extra newline after each line ...
Open vim and paste using Shift + Insert. You would be able to see extra newlines after each line of copied text. Expected...
Read more >1273836 - Copy-Paste of simple HTML adds extra new lines ...
HTML data put on the clipboard when copying lines from a treeherder log view ... Select 4 or so lines to copy *...
Read more >Pasting certain text from Chrome adds an extra new line
What happened: The paste was “Tips” plus an extra newline, even though “Tips” definitely didn't include any newlines when I copied into ...
Read more >Copy / Paste text inserts two new lines - Bootstrap Studio Forum
Hi - I'm working with BS5. I'm finding that BSS is often adding <br /> to several elements. After headings, after paragraphs, after...
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
i dont have the beautify extension, but still the issue persists. Any pointers?
Thanks for the report. Will take a look on the weekend if I get time.