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.

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
rathishrmscommented, Oct 4, 2019

i dont have the beautify extension, but still the issue persists. Any pointers?

2reactions
HookyQRcommented, Jun 5, 2018

Thanks for the report. Will take a look on the weekend if I get time.

Read more comments on GitHub >

github_iconTop 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 >

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