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

Autocomplete for Brackets #265

Open
Louis9902 opened this issue Jun 17, 2020 · 3 comments
Open

Autocomplete for Brackets #265

Louis9902 opened this issue Jun 17, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Louis9902
Copy link

Hey, first of all, an awesome project works really well.

But one small thing that would be very nice to have is that if you open a bracket
like \( for a math environment that it would be closed automatically with \).

Also for completions like \usepackage, it would be useful if it also creates the corresponding brackets like so \usepackage{%cursor%}

I'm not quite sure if it fits here or to the vscode extension.

@pfoerster pfoerster added the enhancement New feature or request label Jun 28, 2020
@pfoerster pfoerster self-assigned this Jun 28, 2020
@efoerster
Copy link
Member

Thanks for the report. I have added the missing math delimiters to the VS Code extension: latex-lsp/texlab-vscode@5355fb8. It should be available in the next release.

For the second part of your suggestion, I think that this behavior is not always wanted, for example if you need to add parameters: \usepackage[...]{}.

@vigoux
Copy link
Contributor

vigoux commented Aug 30, 2020

I second the "argument" expansion, I think it can be really handy. Maybe having at least an option to toggle that on ?

@clason
Copy link
Contributor

clason commented Aug 31, 2020

I agree that it'd be nice to have a configuration option (off by default) to auto-close braces on completion. (This is coming from someone using texlab with vim, so it'd be nice to have this in the texlab server, not the extension.)

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

No branches or pull requests

5 participants