Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indentation issue in code snippet #436

Closed
azinsharaf opened this issue Jan 11, 2024 · 1 comment
Closed

indentation issue in code snippet #436

azinsharaf opened this issue Jan 11, 2024 · 1 comment

Comments

@azinsharaf
Copy link

Thanks for this great app.
when shell gpt returns a code snippet it adds blank space at the beginning of each line (see the screenshot below, highlighted in red) so if I copy it into any ide it creates indentation error. In ChatGPT copying the snippet doesn't have the issue. Am I missing something?

image

@TheR1D
Copy link
Owner

TheR1D commented Jan 13, 2024

Unfortunately, the way text is rendered in a terminal/shell differs from how it's displayed in a browser. To format markdown, the shell uses space characters for indentations and formatting. When copying code snippets into an IDE, I recommend using the --code option to generate pure code without additional formatting.

@TheR1D TheR1D closed this as completed Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants