Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Local Development Environments!
You have completed Local Development Environments!
Preview
Learn how to learn more about your IDE.
Additional Directions
- Keyboard shortcuts you cannot miss
- Step through the Help > Productivity Guide
- Get familiar with the Navigation Basics
- Check out all the links about Code Analysis
- Learn how to work with the different Tool Windows
- Debugger basics will give you some more tips and tricks. I plan on doing a deeper dive in a workshop.
Even more
- Keyboard shortcuts PDFs for Windows/Linux and Mac
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
There's an old proverb that goes,
give a person a shortcut
0:00
and they'll be more productive.
0:03
Teach a person how to learn shortcuts
on their own and they'll change the world.
0:06
It was something like that.
0:11
Maybe a little more profound?
0:13
Now I mentioned earlier that the
documentation in IntelliJ is pretty great.
0:15
Let's take a quick tour through it.
0:20
One thing I want to point out
is that IntelliJ IDEA
0:23
puts a lot of effort into making sure
You don't need to use your mouse.
0:26
It uses a mnemonic approach.
0:30
Anytime
you see a letter underlined in a menu,
0:33
it means you can press that key to jump
focus there.
0:36
It also means that text editing
has tons of handy shortcuts
0:40
and you should know about them.
0:45
Let's take a look.
0:47
Head to the Help menu and choose Help.
0:48
That opens up a pretty awesome web page.
0:51
I'll bring it over here full
0:55
Now, I
0:57
happen to know where the macOS keyboard
shortcuts documentation
0:58
is, because I've been
1:02
to this documentation quite a bit while
prepping for this course.
1:04
We go to IDE Configuration
then Keyboard Shortcuts
1:07
then Predefined macOS Keymap
1:13
or Predefined Windows Keymap
1:16
if you on Windows They done a great job
laying this out On the right hand
1:20
side is a table of contents
Let's take a look at select text.
1:25
So, for example, to select all text
1:31
in the current editor tab,
I would do one of the following.
1:34
Click the edit menu,
then click select all, Or as you can see
1:39
here, I can simply press Command A
on the keyboard.
1:43
And bam! Everything is selected.
1:47
Alright, let's look at selecting
text with the navigation keys.
1:50
Just Shift and
1:55
arrow keys select one character at a time.
1:57
To select text
from the current caret position,
2:00
you can press Shift Alt Left or Right
2:03
arrows to select word by word.
2:06
or Command-Shift-Left-Right arrows
to select
2:09
from caret position
to the beginning or end of the line.
2:12
This can be overwhelming.
2:17
There's a lot of keyboard shortcuts here.
2:19
I do want to pop over to code
commenting though,
2:22
which is really helpful when walking
through and learning the language.
2:25
Let's click
on Coding Assistance on the right,
2:29
then scroll down to comment
with line comment.
2:33
So to comment out a single line
place your cursor on it
2:37
and press Command forward slash
Let give it a try Boom
2:41
a comment appears at the start
2:46
Let's press Control Z to undo the comment.
2:48
It looks like
you can do this with multiple lines too.
2:53
Let's select this block of code and press
Command option forward slash.
2:56
Great.
3:01
Adding, deleting and moving lines,
3:03
These are all things we do all the time.
3:06
Let's take a look at the documentation
for those actions
3:09
by clicking Basic Editing on the right.
3:12
Awesome,
we have shortcuts for the common text
3:16
editor commands
such as cut, copy, and paste.
3:19
And if I accidentally delete something,
I can undo it with Command-Z,
3:23
redo it with Shift-Command-Z.
3:27
Let's scroll down a little bit
and see what other shortcuts there are.
3:30
Oh, this duplicate line or selection
with Command D sounds handy.
3:35
Let's duplicate this printf
so that we can have a second message
3:40
printed to the console. Neat.
3:44
We changed our mind though,
so let's press Command
3:46
Backspace to delete the duplicated line.
3:49
As you can imagine,
this documentation can become
3:52
a bit of a rabbit hole in the best way.
3:55
Feeling more productive already
Speaking of productivity
3:59
if we pop back into IntelliJ help menu
4:02
there a My Productivity option
Let click it This is great.
4:05
It shows time-saving features
grouped by category and how many times
4:11
you used them.
4:15
Clicking on one will show hints
and tips about what they do.
4:17
It's like a performance tracker
for your development life.
4:21
I recommend coming back here
every now and then
4:25
to explore new shortcuts and techniques.
4:27
Don't feel like
you have to learn it all at once.
4:30
Just return when you're curious.
4:33
Now for the productivity motherlord,
4:36
the full printable list of shortcuts.
4:38
Go to Help, then Keyboard Shortcuts PDF.
4:42
It opens a PDF with everything.
4:46
It's a lot, honestly.
4:49
It makes sense that the help system is
so vast.
4:53
IDEs do a lot of things.
4:56
I've added a bunch of directions
in the teacher's notes.
4:58
And remember to keep checking the
My Productivity option
5:01
from time to time to pick up new tricks.
5:05
Once you get the hang of it,
show off to your friends.
5:07
And if you find something you love, share
it in the community forums or on Discord.
5:10
Now that you're getting comfortable
with the editor and navigating around,
5:16
let's practice Visit to more and introduce
some more advanced
5:19
tooling
right after you wrap up this exercise.
5:22
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up