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 Missing #9

Open
quyansiyuanwang opened this issue Dec 30, 2023 · 1 comment
Open

Indentation Missing #9

quyansiyuanwang opened this issue Dec 30, 2023 · 1 comment

Comments

@quyansiyuanwang
Copy link

quyansiyuanwang commented Dec 30, 2023

SimpleDescription

  • In Python, codesnap will lose some indentation

Details

  • It will lose indentation under Keyword class in Python
  • It could add indentaion under def and if, but the num of spaces seems not stable.
    • especially only including if and not including def
    • it fill 4 spaces under if then only two were filled in later
  • There are some pictures that triggered the bug:
    Screenshot_2023_1230_193410
    Screenshot_2023_1230_193544
    Screenshot_2023_1230_194006

TriggerMethod:

  • I can trigger this bug very stably, so I don't think I need to provide a method for triggering it.
  • You'll know why after trying.

Others

  • I'm not sure if codesnap will lose indentation in other languages, but in Python it will.
  • I hope it can provide settings to adjust the number of indented spaces.

PluginVersion

Lastest Version 1.0.3 before 2023.12.30

@APdev93
Copy link
Contributor

APdev93 commented Jan 3, 2024

indentation Follow the results of your code format so that acode.plugin.code-snap doesn't reformat your code

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