Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Shortcuts in NetBeans for arrays and new line

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I need to make a shortcut in NetBeans for arrows Key to avoid moving my hand from base keyboard to arrow keys. Also, I need a shortcut for moving cursor from body of the line to new line, what make enter command, but enter needs being at the end of the line.

I tried tools/ option / Keymap, but there a didn't find proper actions to do it!

Can somebody help me?
 
Saloon Keeper
Posts: 24594
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Gabriel!

Unless your keyboard is a lot different than mine, my arrow keys are part of what I do consider the "base keyboard".  They're right next to the CTRL key on the bottom row. Unless you mean the alternative arrow keys on the numeric keypad.

The actions you describe are the standard ones for a stock "101-key" style keyboard. But it sounds like what you would like to see are more like what the [tt]vi[/i] Unix editor does. Check and see, there may be a "vi" keyboard option for NetBeans, either built-in or as a plug-in.
 
Gabriel Mitu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Tim,
My keyboard is one standard, but I'm wasting much time to type arrow taste, especially I use fast typing. I would prefer a simple shortcut like ctrl+i, ctrl+j, they are more easier and I improve my typing fast. But I don't know how can I make these shortcuts, I don't use Unix and Linux, only Windows. Can somebody help me?
 
Tim Holloway
Saloon Keeper
Posts: 24594
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The official ASCII definitions for the codes rendered by CTRL-I (0x08) and CTRL-J (0x0A) are Horizontal TAB and Linefeed. That is independent of the operating system. And how you find it easier/quicker to hold CTRL and press a second key rather than simply hit the TAB key escapes me. Note that TAB and Linefeed represent actual characters, not simply cursor movement like the arrow keys do.

The vi  editor operates primarily in command mode and its cursor keys are h, j, k and l - without shift or control. So a vi keyboard setting might be closest to what you are looking for.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic