open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

Copying code from OI to VSCode gives bad indentation

Open clickclack777 opened this issue 2 years ago • 1 comments

Describe the bug

When copying code from OI to VSCode gives bad indentation. All indentations are off by two spaces. Looks like it is the markdown in OI that is creating the issue.

Reproduce

  1. Generate code in OI
  2. Copy code
  3. Paste it in VSCode

Expected behavior

Proper indentation when copy & pasting code from OI

Screenshots

Screenshot 2024-01-13 at 00 48 43

Open Interpreter version

0.2.0

Python version

3.11.7

Operating System name and version

Sonoma 14.2.1

Additional context

No response

clickclack777 avatar Jan 12 '24 23:01 clickclack777

It also created line breaks when pasting the code into VSCode that can't be repaired.

Screenshot 2024-01-18 at 21 09 59

clickclack777 avatar Jan 18 '24 20:01 clickclack777