Skip to content

Remove leading indentation/whitespace when copying CLI output #127

Description

@Teresa-CoCo

Description:
When copying code or output blocks from the deepcode-cli interface, there is often extra indentation (leading whitespace) on the left side.
This is inconvenient because it requires users to manually clean up the whitespace after pasting the content into their IDE or terminal, which can lead to indentation errors or unnecessary formatting adjustments. I'm planning to work on a fix for this.
Expected Behavior:
It would be much better if the copied content did not include the extra leading spaces, allowing for a "clean" paste.
Environment:
• OS: Manjaro Linux
• Terminal: VS Code Terminal

Activity

  1. qorzj commented on May 27, 2026

    @qorzj
    Collaborator

    @Teresa-CoCo You may use /raw slash command and then select "Raw scrollback mode". It is introduced specifically to address this kind of need.

    Image
  2. Teresa-CoCo commented on May 27, 2026

    @Teresa-CoCo
    Author

    Thanks for the heads-up about the /raw command! It is indeed very helpful.
    However, I think there is still room to improve the user experience for those who expect a cleaner copy-paste interaction by default:
    1.Remove leading whitespace: Could we implement a way to automatically strip the leading indentation from the output blocks?
    2. Streamlined 'Copy to Clipboard' interaction: Since the /raw output is often the desired content, would it be possible to implement a 'select-to-copy' trigger?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions