<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Losing indents when copy from IDEs like Visual Studio COde"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141117">141117</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Losing indents when copy from IDEs like Visual Studio COde
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.1.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tzoghaib@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=170576" name="attach_170576" title="Code snippet in VS Code and the copy in LibreOffice">attachment 170576</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=170576&action=edit" title="Code snippet in VS Code and the copy in LibreOffice">[details]</a></span>
Code snippet in VS Code and the copy in LibreOffice
Hello,
I write code in Visual Studio Code and want to paste this with right colors and
indents in LibreOffice. The problem is, that LO Writer delete all tabs and
spaces which are in a line before the code. So, the code stands on the left.
It doesn't matter if I use tabs or spaces in VS Code. The indents will stored
in the clipboard, a short test with a text editor (xed) shows this.
The problem appears at Visual Studio Code 1.54.3 and Atom 1.55.0. If I copy the
same code from Jetbrains Webstorm or Sublime, the indents works out of the box.
If I copy code from VS Code to OnlyOffice, it works like a charm!
So, I think its a file format, in which VS Code stores the code to clipboard
and when LibreOffice want to insert this, they can't read the indents right.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>