Open eykamp opened 5 years ago
Maybe instead of hardcoding comment characters, you can grab them from here?
https://code.visualstudio.com/docs/extensionAPI/vscode-api#CommentRule
Aligning comments seems to work when there are trailing commas:
# unaligned, no training comma
v1 = 1 # short
v22222222 = 'abcdd' # longer
# aligned, no training comma
v1 = 1 # short
v22222222 = 'abcdd' # longer
# unaligned, with comma
v1 = 1, # short
v22222222 = 'abcdd', # longer
# aligned, with comma
v1 = 1, # short
v22222222 = 'abcdd', # longer
unfortunately it doesn't respect the space settings
"alignment.surroundSpace": {
"comment": 4,
},
same issue!
When writing Python code (indentation set at 4 spaces)...
Aligning this:
Produces this:
But I'd like this: