What's the shortcut to move a line up in Netbeans

11,118

Solution 1

It's:

Alt + Shift + up/down

So quite similar to eclipse

Solution 2

For those who use Linux, Alt + Shift + up/down could be a shortcut for changing windows, so instead Alt+Shift+Page Up or Page Down

Solution 3

On Mac with NetBeans 8.2 the shortcuts are a little different:

Alt + Shift + up/down  -it duplicates the line
Ctrl + Shift + up/down  -it moves the line

Solution 4

Just click on the "Source" menu, in the menu bar, and look for the items "Move Up" and "Move Down" or "Move Code Element Up" and "Move Code Element Down". They should show the shortcut/accelerator for your platform.

Share:
11,118

Related videos on Youtube

denormalizer
Author by

denormalizer

BY DAY: Alt-Rock Ninja Cowgirl at Veridian Dynamics. BY NIGHT: I write code and code rights for penalcoders.example.org, an awesome non-profit that will totally take your money at that link. My kids are cuter than yours. FOR FUN: C+ Jokes, Segway Roller Derby, NYT Sat. Crosswords (in Sharpie!), Ostrich Grooming. "If you see scary things, look for the helpers-you'll always see people helping."-Fred Rogers

Updated on September 18, 2022

Comments