vscode-better-align icon indicating copy to clipboard operation
vscode-better-align copied to clipboard

How do you set up 'languageConfigs' in 1.4.3?

Open kBlankii opened this issue 3 months ago • 5 comments

So i'm using GDScript that uses both '#' and '##' as line comment, how do i utilize this new feature to make the plugin to recognize them?

Any help is appreciated.

kBlankii avatar Sep 15 '25 01:09 kBlankii

+1 Need some docs or basic example

lonix1 avatar Sep 16 '25 00:09 lonix1

You can set it like this, it's an example make Python comment as "//" instead of "#"

  "betterAlign.languageConfigs": {
      
      "python": { 
          "lineComments": [ "//"],
          "blockComments": []
      
      }
  }

Maybe I can update the configuration description to better understand.

chouzz avatar Sep 16 '25 00:09 chouzz

Also must we change something in our config for the new version to work?

lonix1 avatar Sep 16 '25 02:09 lonix1

@lonix1 Depends on your language, if you have special languages, you will need to set this configuration, or you can make a PR to support your language in the extension.

chouzz avatar Sep 16 '25 02:09 chouzz

I installed the new version... I'm using c# and it works without changing anything. :-)

(I assume some languages already have built-in support.)

lonix1 avatar Sep 16 '25 06:09 lonix1