texstudio-org / texstudio-org/texstudio
Braces are autocompleted when 'Complete selected text when non-word character is pressed' is enabled
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 403
- Avg merge
- 3h 14m
- Merged PRs (30d)
- 12
Description
This is unexpected behaviour for me. In the 'Adv. Editor' section, there are options that would more clearly relate to the autocompleting of braces, which I have disabled all of:

It's particularly annoying that this option controls brace completion, because it causes inconsistent brace autocompletion. E.g. \log{\ doesn't have its closing brace added, but \text{\ does.
My suggestion is to remove the brace completion aspect of this option
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the Adv. Editor settings and reproduce the reported behavior with brace-completion options disabled and “Complete selected text when non-word character is pressed” enabled. Compare the \log{\ and \text{\ cases, then trace the editor’s handling of non-word characters; done means that this option no longer controls brace completion and the inconsistent behavior is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, latex
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100