Resource Useful Intellij Shortcuts

Discussion in 'Tutorials & Resources' started by Baddest Man on Earth, Nov 16, 2015.

  1. As many of you may know, Intellij is the most popular IDE among RuneMate developers. Here are some useful shortcuts I use to lessen the hassle and speed up coding.

    Code (Text):
    1. Alt + Insert
    Perhaps my most used shortcut, this one lets you insert many different lines of code such as constructors, getters and setters.

    One of its many uses is for enums. Let's say I define a bunch of variables in an enum.
    [​IMG]

    I can simply hit the shortcut and this menu will show up.
    [​IMG]

    I simply hit enter when it highlights Constructor.
    [​IMG]

    I select all the fields I want and hit enter or OK and voila.
    [​IMG]

    I can do he same for getters as well.
    [​IMG]

    Code (Text):
    1. Ctrl + N
    I use this to open any class in my project.
    [​IMG]

    Code (Text):
    1. Ctrl + O
    Used to override any method.
    [​IMG]

    Code (Text):
    1. Ctrl + F9
    Rebuilds the project, useful when testing you code.

    Code (Text):
    1. Ctrl + Alt + T
    Surrounds a statement or group of statements with various things.
    [​IMG]

    BONUS!
    Code (Text):
    1. sout
    Type the following line and hit enter and a system out println is added, handy for debugging.
     
    Eagles13 likes this.
  2. Double tapping shift is also useful - it's a more universal version of the class searcher - allows you to jump directly to methods, files, etc.

    Ctrl+Shift+A is also awesome if you want to find a setting or something like that without having to scroll through millions of options/etc. It will allow you to find basically any IDE action by typing its name or part of its name.
     

Share This Page

Loading...