Skip to content

[feature request] add option for two spaces before alignment character #84

@gilbertohasnofb

Description

@gilbertohasnofb

I would like to use this package to align comments in Python. If I set Align By to # and Alignment Space Chars to #, I can modify the code below:

word = 'apple'
print('a' in word)  # True
print('pp' in word)  # True
print('' in word)  # True
print('x' in word)  # False
print('z' not in word)  # True
print('a' not in word)  # False

into:

word = 'apple'
print('a' in word)     # True
print('pp' in word)    # True
print('' in word)      # True
print('x' in word)     # False
print('z' not in word) # True
print('a' not in word) # False

This already looks really good, but the thing is that PEP8 recommends that there should be at least two spaces between a statement and an in-line comment. But using this package as I describe will always add a single space between statement and comment token. Would it be possible to add the option Add Two Spaces Prefix or something like this to this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions