mathlib icon indicating copy to clipboard operation
mathlib copied to clipboard

add nice VSCode settings

Open jalex-stark opened this issue 5 years ago • 6 comments

some people have useful settings in their local VSCode config, while the rest of us don't touch it because we don't want to break anything. can anyone that has nice local settings propose them in a PR?

see this zulip thread: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/VSCode.3A.20apostrophe.20is.20part.20of.20a.20word/near/202055397

jalex-stark avatar Jun 26 '20 14:06 jalex-stark

Some settings (like wordSeparators) could potentially go in the vscode-lean repo instead so that people have access to them by default when working on Lean projects outside mathlib.

There's also a thread with some useful snippets which should be shared in one of these places: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/vscode.20snippets

bryangingechen avatar Jun 26 '20 15:06 bryangingechen

Having \<\> missing from wordSeparators has caused me a lot of frustration - since it's a language feature, it seems like it's fair game to put in vscode-lean.

eric-wieser avatar Jul 17 '20 11:07 eric-wieser

Can we have "editor.acceptSuggestionOnEnter": "off", --- it's useless in Lean, as far as I understand.

I'm not sure where to put this --- somewhere in the vscode-lean repository?

kim-em avatar Jul 20 '20 04:07 kim-em

Oh, that's actually a good question. I guess we could write a command in the VS Code extension that copies some convenient settings to the users settings.json or a per-project settings.json?

bryangingechen avatar Jul 20 '20 04:07 bryangingechen

If there's anything that can be done in the vscode-lean extension, please file a PR!

Having \<\> missing from wordSeparators has caused me a lot of frustration

We already exclude and from the wordPattern. I'm not sure what else we can do in the extension. If you know how to fix it, please file a PR!

I guess we could write a command in the VS Code extension that copies some convenient settings to the users settings.json

I think we could start with a more low-tech solution: how about we collect these settings in the mathlib repository and tell people to copy&paste it from here?

gebner avatar Jul 20 '20 09:07 gebner

Opened https://github.com/microsoft/vscode/issues/102942 about what the recommended way to provide setting defaults from language extensions is.

eric-wieser avatar Jul 20 '20 11:07 eric-wieser