Our last series was a big success and we decided to take it a step further with an Advanced Programming series, which will start in Dec. 2016. But for today I want to give you a quick tip for faster coding in IntelliJ IDEA!When you are coding, there are some constructs that you might type more than once. Let’s say the main-method. Each Java program needs one, or the System.out.println()-call, which might be a method you call very often. IntelliJ (as well as other IDEs) have handy features, so you do not have to write these constructs manually each time you need them. For example:
If you type in sout in a valid context (inside a method) and press enter immediately after entering it, IntelliJ will substitute “sout” with:
System.out.println("");
Look at this short video if you want to see this feature in action!
These keywords are called live templates in IntelliJ and you can list all available keywords with the Ctrl + J (Cmd + J on Mac) shortcut. You can read more about live templates in the official documentation.
And the best thing is: If you have a code snippet that you use often, you can define your own macros! Learn about that feature here.
Hopefully this tip helps you and speeds up your coding! Have a nice Monday!
Table of contents
Part 1 – MyFirstProgram
Part 2 – Access Modifiers and Variables
Part 3 – Methods
Part 4 – Arrays
Part 5 – Control flow
Part 6 – Classes and Objects
Part 7 – Exceptions and exception handling
Addendum 1 – IntelliJ QuickTip (You are here)
Addendum 2 – Important programming concepts explained
Wow, this paragraph is fastidious, my sister is
analyzing these kinds of things, therefore I am going to
inform her.
LikeLike
Have you ever thought about including a little bit more
than just your articles? I mean, what you say is important and everything.
However think of if you added some great graphics or videos
to give your posts more, “pop”! Your content is excellent but with images and videos, this
website could definitely be one of the best in its
field. Awesome blog!
LikeLiked by 1 person
Saved as a favorite, I like your blog!
LikeLiked by 1 person
It’s awesome to go to see this site and reading the views of all mates concerning this
piece of writing, while I am also keen of getting
knowledge.
LikeLiked by 1 person
Very good article! We will be linking to this great content
on our site. Keep up the great writing.
LikeLiked by 1 person
Useful information. Fortunate me I discovered your web site accidentally, and I’m surprised why this
coincidence did not took place in advance! I bookmarked it.
LikeLiked by 1 person
I am captivated by this insightful article.
There are actually many things mentioned here I had never thought of before.
You have made me realize there is more than one way to think about these things.
LikeLiked by 1 person
Just what I was looking for, thanks for putting
up.
LikeLiked by 1 person
These are genuinely impressive ideas in regarding blogging.
You have touched some pleasant things here. Any way keep up wrinting.
LikeLiked by 1 person
Buenas. Tengo 37 aƱos y estoy aprendiendo inglƩs harƔ unos 8 aƱos.
Este comentario me ha parecido memorable para la formación en el inglés.
Me ha sido muy conveniente. Lo voy a aumentar a mis
favoritos. Te doy las gracias por el comentario.
LikeLike