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

Backticks should be auto-closed #279

Closed
harpocrates opened this issue Jan 10, 2025 · 2 comments · Fixed by #280
Closed

Backticks should be auto-closed #279

harpocrates opened this issue Jan 10, 2025 · 2 comments · Fixed by #280

Comments

@harpocrates
Copy link
Contributor

When I type a backtick, it would be nice for it to auto-close with another backtick.

I can't think of a situation in which I would want an unpaired backtick. Aside from that, it means that my code remains lexically valid as I type out the backtick-delimited identifier (as opposed to being invalid until I hit the closing backtick).

@tgodzik
Copy link
Contributor

tgodzik commented Jan 10, 2025

Thanks for reporting! It should be quite easy to do like in https://github.com/scala/vscode-scala-syntax/pull/274/files though oposite and with `

@harpocrates
Copy link
Contributor Author

Yeah, I'm doing right now, will open PR shortly.

harpocrates added a commit to harpocrates/vscode-scala-syntax that referenced this issue Jan 10, 2025
Typing a backtick now automatically adds a closing backtick as well.

Fixes scala#279
harpocrates added a commit to harpocrates/vscode-scala-syntax that referenced this issue Jan 10, 2025
Typing a backtick now automatically adds a closing backtick as well.
Also possible to quickly add add backticks are ident by selecting and
typing backtick.

Fixes scala#279
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

Successfully merging a pull request may close this issue.

2 participants