Skip to content

Remove extra tabs/spaces at the beginning of a copied code #348

Open

Description

@VitalRus95

Imagine you have a code like this:
изображение

And you want to copy it to show to someone else but it has leading spaces/tabs that make you either send an ugly code or use Shift+Tab and then Tab/Ctrl+Z to make things right. It will be cool if SB removes such extra spaces while keeping the inner indentations. Maybe it is achievable by counting the amount of spaces before the actual text and removing the same amount in each line.

Thanks!

Activity

  1. added this to the IDE Overhaul milestone on Sep 5, 2024
  2. MiranDMC commented on Nov 8, 2026

    @MiranDMC

    I never seen such feature in any IDE.
    Using mentioned Shift+Tab or even Ctrl+Alt+3 seems easy enough.

  3. VitalRus95 commented on Nov 8, 2026

    @VitalRus95
    Author

    I never seen such feature in any IDE.

    Zed editor has this feature.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions