Comments (8)
I use Resharper heavily. I like and use the R# rich mouse navigation (ctrl+left click goes to declaration, ctrl+alt+left click goes to implementation). Unfortunately, R# doesn't do peek definition. It would be great to be able to use this add-in to invoke peek definition on ctrl+shift+left click, for example.
Could you add functionality for doing both peek definition on one user-defined mouse event and go to definition on a second user-defined mouse action?
As for the setting ui, what about check boxes for ctrl, alt, shift, and a radio for mouse button left/right/middle? Or do it like the VS settings keyboard mapping, where you press the keys you want to map to?
Thanks or making this add-in, and the others in the Power Tools collection. They're used and appreciated.
from vs-ppt.
@mserfass I wanted to let you know that your ideas have spawned rigorous discussions around the Editor team. We like your idea of providing users the ability to easily choose GoToDefn or PeekToDefn using a modifier key.
@ChristopherHaws
We are also looking to provide users with the ability to choose their own GoToDefn modifier keys.
Our current thoughts are to match ReSharper's current choices for GoToDefn (Ctrl+Click) and PeekToDefn (Ctrl+Shift+Click).
And we will provide users the ability to choose the modifier for GoToDefn from Ctrl, Alt, or Ctrl+Alt.
Adding Shift to the chosen GoToDefn keys will change it to a PeekToDefn call.
(So if a user chooses Alt as the GoToDefn key, then Shift+Alt will fire off PeekToDefn.)
What do you think of that?
We currently have no implementation of Go To Implementation.
If and when we do, we will need to reconsider our options.
We are tentatively reserving Ctrl+Alt+Click for GoToImpl.
We haven't considered offering a choice of mouse buttons.
Middle-Click GoToDefn seems like a sensible default.
from vs-ppt.
Hi Christopher. Thanks for your suggestion.
I suppose what you suggest is possible. And there should be no harm in approving a configurable modifier key. But what would be the interface for the user to set the modifier key?
Before we do that, though, my first suggestion would be that you try to break the habit of using Ctrl-Click to select a word. I know it's out of the box behavior in VS, but Ctrl-Click to follow a link is much more common outside of VS, so I like using Ctrl-Click inside VS to GoToDefinition (personally), and I tend to use Double-Click to select the whole word.
Regardless, now that we have open-sourced the code, you can make this change locally - and use it locally. You won't need any approval from us to do that. You could even hard-code the key in that case.
(Just make sure you disable the original Ctrl-Click GoToDefinition in PPT before you install the replacement standalone extension! Else you might get unpredictable behavior.)
from vs-ppt.
I was thinking that a dropdown could be added to the "Other Extensions" options page in the options dialog to specify the modifier key. The default value could continue to be the control key, so it wouldn't change the default behavior.
I use ctrl+click for more than selecting one word, so double clicking wouldn't work for me. I tend to ctrl+click the first word and ctrl+shift+click a second word to select multiple words. I admit, this is a habitual action, but I am able to make selections much faster than the alternative.
from vs-ppt.
Good point about a conflict with Ctrl+click selecting a word though... I think we have to fix this by allowing a choice of other modifier keys as you suggested.
from vs-ppt.
Previous comment illuded to issue #114.
Nice suggestions about the UI. Instead of checkboxes for the modifier keys, I suggest a drop-down with the following options:
- Ctrl
- Alt
- Shift
- Ctrl+Alt
- Ctrl+Shift
- Alt+Shift
- Ctrl+Alt+Shift
Three checkboxes for Ctrl, Alt and Shift would probably work equally well.
from vs-ppt.
Note: There is a user voice about this item.
"Iām pleased to say we are looking to include this feature in a future release of Visual Studio."
As such, these changes we are discussing will probably not be implemented in PPT, but instead, will appear in the core product.
@mserfass Regarding the modifier for PeekToDefn:
If you open a User Voice item about the modifier for PeekToDefn, we can track votes and keep you updated on our progress as we consider building that into the product too.
Thanks for your suggestions.
from vs-ppt.
from vs-ppt.
Related Issues (20)
- Copy As Html 2022: Missing Edit > Copy Html Markup HOT 6
- shrink empty lines causes.. jittering? HOT 2
- Peek Help default binding ALT+F1 conflicts with Visual Studio
- Format document on Save is missing both from VS 2022 and PPT22 HOT 3
- Copy As Html 2022: BeforeCodeSnippet and AfterCodeSnippet options not being honored HOT 12
- Where is the src code for Align Assignments HOT 1
- Time Stamp Margin doesn't work on Visual Studio 2019
- Copy as HTML 2022: Performance issue
- Copy As Html 2022: Copying from dark theme HOT 4
- Peek Help - Browser no longer supported HOT 7
- Copy As Html stops copy and cut operation in Visual Studio 2017 and 2019. HOT 1
- "Format document on save" incompatible with SA1000 HOT 1
- add AutoHistory to PPT 2022
- Align method arguments
- [Middle-Click Scroll] Feature request: option to disable middle-click
- IWaitIndicator HOT 2
- Background downloading
- This repo is missing important files
- Arm64
- "Copy as HTML 2022" is broken in 17.9p2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs-ppt.