chouzz / vscode-better-align

Better vertical alignment with/without selection in any language.
https://marketplace.visualstudio.com/items?itemName=Chouzz.vscode-better-align&ssr=false#overview
Apache License 2.0
39 stars 4 forks source link

Align code by any characters #78

Open kevin-wamae opened 1 year ago

kevin-wamae commented 1 year ago

Hi? I've only managed to align comments starting with //.

How can I allow for other characters, such as # ?

chouzz commented 1 year ago

Could you please show somes examples? Maybe it's not supported yet.

kevin-wamae commented 1 year ago

Here's an example with R, where I'd want to align by # library(readtext) # handling plain and formatted text files library(magrittr) # command-chaining

chouzz commented 1 year ago

The default comment is //, but seems now it can be changed in different languages. I think it can be supported.

kevin-wamae commented 1 year ago

Ok, thanks.

Is that something I need to tweak on my end, or should I wait on you to add the feature?

chouzz commented 1 year ago

Just wait. I will add this.

abyszuk commented 1 year ago

+1 to this. In VHDL assignment operators have two forms: := and <= and it's pretty standard to have code aligned like this:

a_name <= '1';
b_sig  <= '0';
c_s    <= "001";

Also, comments start with --.

chouzz commented 1 year ago

Thanks for the feedback, I found it's harder than I thought, but I will investigate this.

GaryLiuTelus commented 1 year ago

+1 here. In SQL, you might want to align using AS:

SELECT
       XXX        AS      YY
       AAAAAA     AS      BB
FROM
       TTT
loverchun commented 1 year ago

I also need this performance, especially in python and shell code.

Ahmad-Zaklouta commented 12 months ago

+1 to this. In VHDL assignment operators have two forms: := and <= and it's pretty standard to have code aligned like this:

a_name <= '1';
b_sig  <= '0';
c_s    <= "001";

Also, comments start with --.

have anyone figure out how to fix this?

loverchun commented 12 months ago

您好,您的邮件我已收到,我会尽快给您回复,谢谢!