In this video, I wanna go through
and show you how to configure and instal IntelliJ IDEA,
the community edition, for a Mac platform.
Now, if you're running Windows or a Linux machine,
refer to the videos that I've got
for those operating systems on this channel.
But if you're in now, or on a Mac, I should say,
and are ready to instal IntelliJ IDEA, let's get started.
(upbeat techno music)
Alright, so, in this video we are going to instal
and configure IntelliJ for the Mac.
The first thing we wanna do though is go to JetBrains.com.
Now, JetBrains, is the company that create,
or have created, the IntelliJ IDEA product,
which we'll be using to write Java programmes.
Once you get to their site, have a go on over to Tools,
and just hover over that.
Come down over here to IntelliJ IDEA, click on that.
Come down here and select Download.
I'm just gonna close this little cookie window,
by clicking on, Yes I Agree, as you saw me do there.
Now, we've got two options for IntelliJ,
once we get to this screen.
We can download the Community edition,
or the Ultimate edition.
And you can see that the Community edition
is free and open source, so that would be the best option
for you if you don't want to pay for the software.
The Ultimate edition is set up
if you're a professional programmer,
and you need access to some of the other features.
So, for now, I suggest you download the Community edition,
and I'm gonna start that download,
and you can see it's downloading up here.
And in terms of the Ultimate edition,
you do get a trial, you get a 30 day trial with that.
But as I mentioned earlier, the Community edition
will do everything you want it to do,
and there's really no need to get the Ultimate edition,
unless you specifically want to access some of the features,
as a professional programmer would.
Alright, so you can see at this point now,
IntelliJ Community edition has downloaded for me.
I'm going to open it.
I'm going to navigate to the folder,
and I double click to open it, and I close down the browser,
because we're done with that now.
Close down finder.
And you can see, being a Mac application,
it's quite easy to instal.
We're just gonna drag it into the Applications folder.
Give that a moment to complete.
So you can see it there completing on the screen.
That's now complete, so I'm going to close that window,
and I'm going to close this here,
I'm going to eject it.
And the other thing I would do then, is start,
so I'm just going to open a finder window,
I'm going to go to my Applications,
and we'll find IntelliJ IDEA CE,
CE standing for Community edition.
I'm gonna double click that, and we'll open it up.
We'll give that a moment to verify.
We'll click on Open.
Now, the very first time that you open IntelliJ IDEA,
it is the first time ever on your computer,
or the first time for a new version,
you will get this little pop-up.
This gives you the option, if you've already got
an installation, of IntelliJ IDEA,
you can select the location, and it will download,
or import rather, the settings from a previous installation.
Now we don't need to do that here, for two reasons.
First, that we don't have setting changes, but secondly,
we don't have a previous installation either.
So, I'm going to click on do not import settings.
But that's an option for you.
And, in fact, if IntelliJ found a previous installation,
of IntelliJ on the computer,
it would actually come up with that directory automatically.
But I'm going to select do not import settings,
and click on OK.
You may, or may not, get this option here for privacy policy
depending where you are in the world.
So, I'm just going to scroll down to the bottom,
and click on Accept, but you can read that,
and do whatever is appropriate.
Likewise, for data sharing, you may or may not get this,
but if you do get it, I would suggest don't send,
but you can send anonymous usage statistics
to JetBrains to help improve their software, if you want.
I'm going to click on don't send.
So now we've got a couple of configuration options.
You can choose the background.
I'm going to go with a light background, like so,
but if you want to choose darcula, you can do that,
and you can change any of these settings
that I'm showing you in these settings at a later point,
so don't think that you cannot change it down the trek.
You can do that if you want to.
I'm going to click on Next.
I'm going to leave the default keymap scheme.
If you know what you're doing,
and you want to change things, you can do that,
but I'm going to leave the default.
And that's what I'll assume,
that you're using the default Keymap settings.
I'm going to click on Launcher Script.
Now, this is an option if you want to run IntelliJ IDEA
from the command line.
Now we won't being that,
we'll just be invoking IntelliJ by starting the icon.
Double clicking the icon as we normally would.
But it won't hurt to create a launcher script,
if you want to do that.
You can click on that, it's there if you need to.
It's just a shortcut if you're a programmer
who uses the command line.
I'm gonna click on Next,
and that's been created for us.
IntelliJ IDEA gives you the option
to download and instal plugins,
and you can see there's a variety there.
But all these ones on the screen, we aren't going to use,
but you can see that in fact,
some of them are actually set.
In fact, all of them are set to be installed anyways.
We're just going to leave them as they are,
we're not going to change anything.
Click on Next, Featured plugins.
These options here, we aren't going to instal any of those,
because we're not going to be using these particular plugins
so I'm going to click on Start using IntelliJ IDEA.
Okay, depending on whether you selected
the launch script or not,
you'll be asked to enter your password,
so I'm going to type that in.
And IntelliJ IDEA is starting, as you can see.
Alright, so we've now got IntelliJ IDEA installed,
but there are a couple of other things we want to do
to get it ready to start using it.
So, the first thing we want to do is we want to connect,
or associate IntelliJ IDEA with the JAVA development kit
we downloaded and installed in the previous video.
So, to do that, I'm going to select, Configure,
and come down here and select, Project Defaults,
then I'm going to select, Project Structure.
I want to make that when this pops that project is selected,
and you can see that was selected by default for me.
Now as this is the first time that we're installing
IntelliJ on this computer, we come here,
and option that says, No SDK.
Now, if I select that, you'll find that it may, or may not,
have picked up that there's a JAVA 11 installation.
In my case, even though I haven't actually
configured IntelliJ on this computer before,
it's actually found the installation for us automatically.
So I can just click on that, and I could do it that way.
I could configure it.
But what I'm actually going to do is come down here to SDKs,
and I'm going to delete this.
And the reason I'm going to delete it,
is just to show you how to configure it,
if for some reason that wasn't selected.
So if it is there, you can leave it as to say,
it was showing.
Or, you can see now that it no longer exists,
you can click on, New.
You can select, JDK.
And you can see in this case, that automatically,
IntelliJ has found the installation of JAVA for us, the JDK.
If if I click here you can see that it's found
the location, and this is the location where the JDK
was installed automatically for us.
So that would the folder you would need to dedicate to
if you were doing this manually,
and if for some reason it didn't pop up automatically,
we've got the JDK11 folder, contents, and home.
But again, IntelliJ, as you saw,
found that for us automatically.
I'm going to click on, Open.
And you can see that we've got 11,
Java version 11, showing there.
The other thing we need to do is change
this project language level.
I'm gonna click on here,
and we also want to click on and make that 11,
so that it is set to the same version
of the Java developer kit that we're going to be using.
So I'm going to click on that, you'll get this pop-up,
and this is because it's relatively new.
So I'm gonna click on, Accept.
That most likely will disappear after a while, that pup-up.
Click on Accept if you see it, and then click on OK.
Alright, so, at this point,
we've now configured the Java development kit for IntelliJ,
so that we can use that create Java programmes.
Now, there's a couple of other settings,
which are optional, but are highly recommended.
So, what I'm going to do, is just configure those now,
and then we'll actually be done.
So, to get access to those settings,
I'm going to click on, Configure,
I'm going to select, Preferences,
and then open, so I'm going to come over here,
and select, Editor, clicking on this disclosure triangle.
Going to come down to, General, click on that,
and then again click on the disclosure triangle.
I'm going to first select, Auto import.
Now, there's two check boxes here we want to select,
to check rather.
First one, Add unambiguous imports on the fly,
and the second,
Optimise imports on the fly for current project.
Now I actually talk later about what these are for,
but for now, we're just going to configure this,
and set these setting up.
And these settings will be applied
for every new project we create.
Alright, so moving on the next thing
I wanna select is, Appearance.
I'm gonna click on that, and you want to make sure that,
Show line numbers is checked.
You can see here that that is checked.
So, we don't need to do anything there.
Then, last area we need to go into is Code Folding,
so I'm gonna click on that.
And what we are going to do is deselect or uncheck
a number of these check boxes.
Now, the reason we're unchecking them is
we don't want IntelliJ to try and hide any of our code.
When you're a professional programmer,
you'll find that you often want to hide aspect of a code
that you're very familiar with,
but when you're just starting out,
it's a good idea to make sure none of that happens.
So, for that reason I'm going to uncheck Imports.
I'm also going to uncheck One-line methods.
I'm going to uncheck Closures,
and finally I'm going to uncheck
Generic constructor and method parameters.
So, don't worry too much about what they mean,
we'll talk more about that in later videos,
the point here is that we're deselecting those,
so that we get access to all the code
when we're writing our Java programmes.
So, I'm gonna click on, OK to save those changes,
and at this point, we're now done.
Alright, so thanks for watching.
If you've got questions, leave a comment.
If you're ready for the next programming specific video,
click on the link up here,
in the top left-hand corner of your screen.
To look at non-coding programing related questions,
click on the link down the bottom
left-hand corner of your screen.
Feel free to subscribe, by clicking on the link up here,
and I'll see in another video.