Skip to content
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

Automatic quotes for attributes in Razor files #7418

Open
alex-jitbit opened this issue Aug 4, 2024 · 2 comments
Open

Automatic quotes for attributes in Razor files #7418

alex-jitbit opened this issue Aug 4, 2024 · 2 comments
Assignees
Labels

Comments

@alex-jitbit
Copy link

When editing plain HTML files, VSCode insert quotes automatically after typing tag attribute, like <a class= double quotes are inserted.

Please add the same when editing .CSHTML (Razor) files

@JoeRobich
Copy link
Member

@davidwengier This looks like it is part of the language configuration already.

"autoClosingPairs": [
{ "open": "{", "close": "}"},
{ "open": "[", "close": "]"},
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'" },
{ "open": "\"", "close": "\"" },
{ "open": "@*", "close": "*@" }
],

@alex-jitbit
Copy link
Author

@JoeRobich Nope, I'm not talking about auto-closing pairs. I'm talking about inserting quotes after typing = (equal sigh) in html attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants