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

Toggle codelens via key bindings command #16174

Closed
NinoFloris opened this issue Nov 28, 2016 · 6 comments
Closed

Toggle codelens via key bindings command #16174

NinoFloris opened this issue Nov 28, 2016 · 6 comments
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality
Milestone

Comments

@NinoFloris
Copy link

NinoFloris commented Nov 28, 2016

I'd like a way to toggle codelens via a keyboard shortcut.

It would be very very welcome, sometimes in files where you have a lot of referenceable material packed in a small space (c# properties for instance) it's very distracting and other times it's the only way to get to things (c# debug test for instance).

Being able to toggle codelens would be the bee's knees.

EDIT: Oh and to add to this, being able to toggle codelens is also very nice from a responsiveness perspective as omnisharp really has a tough time serving all those "x references" queries. Seeing huge cpu spikes where mono.osx is at 200% for a while before dropping to normal levels again.
Not a problem if you stay in 1 file but going from file to file you keep hitting the language server with quite some load.

@chrmarti
Copy link
Contributor

Using this as a feature request for the base VSCode. Please consider also filing a feature request for Omnisharp.

@chrmarti chrmarti added the feature-request Request for new features or functionality label Nov 29, 2016
@alexdima
Copy link
Member

There is a setting "editor.codeLens" that can be set to false to disable the feature. One could write an extension that changes the setting value via a keybinding.

@alexdima alexdima added the *extension-candidate Issue identified as good extension implementation label Nov 30, 2016
@alexdima alexdima added this to the Backlog milestone Nov 30, 2016
@alexdima alexdima removed their assignment Nov 30, 2016
@mika76
Copy link

mika76 commented Feb 27, 2017

Seems somebody already might have done it: https://marketplace.visualstudio.com/items?itemName=cmlewis89.vscode-togglecodelens

Doesn't work for me though...

@NinoFloris
Copy link
Author

NinoFloris commented Feb 27, 2017 via email

@rebornix
Copy link
Member

It's a good extension candidate and you can follow https://medium.com/hack-visual-studio-code/toggle-any-setting-in-vs-code-using-keyboard-shortcut-arguments-cdb5ddc56955 to get your preferred extension to archive that.

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 2, 2017

Closing as extension candidate. Please try this extension to toggle settings: https://marketplace.visualstudio.com/items?itemName=rebornix.toggle

@mjbvz mjbvz closed this as completed Nov 2, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants