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

No support for auto-closing quote marks or toggling comments #93

Open
GarbatyGrabarz opened this issue Oct 21, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@GarbatyGrabarz
Copy link

I have fixed this "issue" myself locally and wanted to share since there is no guide of how to contribute to the project.

  1. package.json > "contributes" > "languages" add a line on the same level as "id", "extensions", and "aliases" (remember about a comma in the line above).
"configuration": "./language-configuration.json"
  1. In the root directory create language-configuration.json:
{
	"comments": {
		"lineComment": "%%"
	},
	"autoCloseBefore": ";:.,=}])> \n\t",
	"autoClosingPairs": [
		{
			"open": "\"", 
			"close": "\"", 
			"notIn": ["string", "comment"]
		},
	],
	"surroundingPairs": [
		[
			"\"",
			"\""
		]
	]
}
@GarbatyGrabarz GarbatyGrabarz added the bug Something isn't working label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant