Coder Social home page Coder Social logo

Comments (8)

mserfass avatar mserfass commented on May 13, 2024 1

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.

justcla avatar justcla commented on May 13, 2024 1

@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.

justcla avatar justcla commented on May 13, 2024

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.

ChristopherHaws avatar ChristopherHaws commented on May 13, 2024

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.

olegtk avatar olegtk commented on May 13, 2024

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.

justcla avatar justcla commented on May 13, 2024

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.

justcla avatar justcla commented on May 13, 2024

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.

mserfass avatar mserfass commented on May 13, 2024

from vs-ppt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.