Skip to content

代码块中 Tab 键的缩进无法回退 #4207

Closed
@LecoLu

Description

@LecoLu

版本:1.8.9
问题:代码块中,如果缩进是使用Tab,无法使用shift+Tab进行回退缩进。而以空格为缩进的,可以回退。
动画

Activity

LecoLu

LecoLu commented on Mar 16, 2022

@LecoLu
Author

@88250 D大,这个问题能否解决呢? 最近在写go语言,他默认推荐是使用tab键缩进的,粘贴代码时无法使用退回缩进功能。

88250

88250 commented on Mar 16, 2022

@88250
Member

暂时还没有时间细看,建议代码在 IDE 里写好后一次性粘贴。

LecoLu

LecoLu commented on Mar 16, 2022

@LecoLu
Author

暂时还没有时间细看,建议代码在 IDE 里写好后一次性粘贴。

好的。可以一次性粘贴,但是大部分都是得部分粘贴。如果有时间的话解决一下。

changed the title [-]代码块中Tab键的缩进无法回退问题[/-] [+]代码块中 Tab 键的缩进无法回退问题[/+] on Mar 16, 2022
changed the title [-]代码块中 Tab 键的缩进无法回退问题[/-] [+]代码块中 Tab 键的缩进无法回退[/+] on Mar 16, 2022
Vanessa219

Vanessa219 commented on Mar 17, 2022

@Vanessa219
Member

tab 个数和编辑器中设置的不一致时,会选取最小值进行缩进。建议在 IDE 中缩进后再粘贴,否则一行一行的缩进也很幸苦。

removed their assignment
on Mar 17, 2022
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

        Participants

        @88250@Vanessa219@LecoLu

        Issue actions

          代码块中 Tab 键的缩进无法回退 · Issue #4207 · siyuan-note/siyuan