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

Add editor command: Move method up/down #3

Open
justcla opened this issue Jun 29, 2016 · 4 comments
Open

Add editor command: Move method up/down #3

justcla opened this issue Jun 29, 2016 · 4 comments
Assignees

Comments

@justcla
Copy link
Owner

justcla commented Jun 29, 2016

Suggested key binding: Alt+Up / Alt+Down

@justcla
Copy link
Owner Author

justcla commented Jul 1, 2016

Perhaps we should find a new shortcut.
Perhaps Alt+Shift+Up/Down to Move whole method

@justcla
Copy link
Owner Author

justcla commented Jul 8, 2016

Mathi is looking at this

@justcla
Copy link
Owner Author

justcla commented Jul 26, 2016

Logic
On Command: MoveLineUp(Down)
If cursor is on member signature/declaration
then move the member up/down
Else ....
DTE call out to existing MoveLineUp function
Anywhere on the delcaration line
single cursor, or any selection of any length
but not on the next line
Basic Key: Alt + Up/Down
Advanced key: Alt + Shift + Up/Down

@justcla
Copy link
Owner Author

justcla commented Sep 9, 2016

This is already implemented and exists on the Edit menu.
Visual Studio Commands: Edit.PreviousMethod / Edit.NextMethod

Slight differences:

  • Only works on methods
  • Cycles from bottom to top (and reverse)

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

2 participants