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

Keyboard Shortcut for Create Test File #13

Open
Mike-E-angelo opened this issue Aug 21, 2021 · 5 comments
Open

Keyboard Shortcut for Create Test File #13

Mike-E-angelo opened this issue Aug 21, 2021 · 5 comments

Comments

@Mike-E-angelo
Copy link

Mike-E-angelo commented Aug 21, 2021

Does this exist? Is it possible? :) :) :)

FWIW this is all I see:

@zvirja
Copy link
Owner

zvirja commented Sep 2, 2021

It's a bit more complicated that the one above. The one above is a global action, while we want to add a shortcut for a very contextual action (when class identifier is under cursor). If we want to add a command (to later assign a shortcut for that), we should first thing of the flow and when it's available.

Today you can also see whether you create or browse an existing test. If we give a shortcut - we might create tests when people just wanted to explore the existing.

So not so trivial..

@Mike-E-angelo
Copy link
Author

Today you can also see whether you create or browse an existing test. If we give a shortcut - we might create tests when people just wanted to explore the existing.

Totally fine. It should be a "navigate to test location" shortcut. If it doesn't exist, create the file. If it exists, then visit it. :)

TestCop has this functionality, and so did TestLinker when it was maintained. Neither of them were/are as precise as your project, however. 😁 That is, neither of them paid attention to the actual class it was in but rather only the class file.

IMO if you press a keyboard shortcut it should consider where the cursor currently rests. That is my expectation, however.

@zvirja
Copy link
Owner

zvirja commented Sep 2, 2021

Would you expect this shortcut to work only if cursor is on a class name identifier (where you have a quick action today), or if cursor is anywhere within a file? If that would be on a file identifier only - would it be fine to you?

@Mike-E-angelo
Copy link
Author

I would prefer it to be anywhere within a class/struct/etc. if at all possible, but I am not picky. If the class identifier is the best you can do I will have to find the shortcut to navigate there first. :) I am sure R# has that. 👍

@Hyldahl
Copy link

Hyldahl commented Nov 30, 2022

I would prefer it to be anywhere within a class/struct/etc.

I was coming here to look for the same possibility of a keyboard shortcut for this feature.
It would be real time saver if this was possible.

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

No branches or pull requests

3 participants