Skip to content

Add line comment config #12

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

Open
thomasaull opened this issue Feb 14, 2025 · 1 comment
Open

Add line comment config #12

thomasaull opened this issue Feb 14, 2025 · 1 comment

Comments

@thomasaull
Copy link

thomasaull commented Feb 14, 2025

I was missing // line comments, messing with the file languages/scss/config.toml did enable line comments:

block_comment = ["/* ", " */"]
line_comments = ["// "]

However block comments can’t be used anymore, which would be fine for me but probably not for everyone.

Do you know if there is any option to enable both? Or as a workaround could it be possible to make this configurable on a user level in some way?

Edit: Apprently it’s not possible to explicitly create a block comment: zed-industries/zed#4751

@bajrangCoder
Copy link
Owner

However block comments can’t be used anymore, which would be fine for me but probably not for everyone.

I believe a large portion of users prefer using /**/, so there's no strong reason to change it.

Do you know if there is any option to enable both? Or as a workaround could it be possible to make this configurable on a user level in some way?

A Zed extension cannot provide language-specific settings to be used in config.toml—that’s only possible for LSP settings. The only way to achieve this currently is to fork or clone this extension repository, make the necessary modifications, and install it as a developer extension.
As from docs , zed doesn't allow to modify line_comments etc from user's configuration

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