What is an IDE?
An IDE (integrated development environment) is one app with everything you need to write, build, run and debug a program, such as IntelliJ IDEA for Java or Visual Studio for C#.
Novice · Software Development · Updated
After this lesson you can
- Explain what an IDE is and what its editor, compiler, run button and debugger each do
- Choose the IDE built for a language, such as IntelliJ IDEA for Java or Visual Studio for C#
Key takeaways
- An IDE (integrated development environment) puts the tools to write, build, run and debug a program in one app.
- The editor is where you type code, the compiler turns it into a program, Run starts it, and the debugger pauses it so you can look inside.
- Integrated means the tools work together. A mistake the compiler finds is underlined in the editor, on its line.
- Each IDE is built for a language or platform. IntelliJ IDEA is built for Java, and Visual Studio for C#.
Think of a kitchen. You could cook dinner with a camping stove, a pocketknife and a bucket of water, but you'd spend half the evening fetching things. A fitted kitchen puts the stove, the oven, the sink and the knives in one room, laid out for cooking. An IDE (integrated development environment) is that kitchen for programmers: one app with every tool you need to write a program, run it, and fix it.
The tools inside an IDE
The code you write is called source code: plain text, saved in files such as Main.java or Program.cs. An IDE gives you the tools to work on it, side by side in one window:
| Tool | What it does for you |
|---|---|
| Code editor | Where you type your code. It colors the parts of your code, suggests what comes next, and underlines mistakes as you type. |
| Compiler | Turns your source code into a program the computer can run. This step is called a build. |
| Run button | Builds your program and starts it with one click, then shows what it prints. |
| Debugger | Pauses your program while it runs, so you can look at every value and move forward one line at a time. |
| Git tools | Save versions of your work and share them, without leaving the IDE. |
Why "integrated"?
You could do each of those jobs with a separate program: type your code in a plain text editor, build and run it in the terminal, and hunt for mistakes by reading. An IDE uses the same compiler you could run in the terminal (the one in the JDK for Java, or in the .NET SDK for C#), but it ties the tools together:
- When the compiler finds a mistake, the editor underlines it on its line.
- When you click a line, the debugger can pause the program there.
- The IDE keeps track of your files, your settings and the libraries your program uses, so you don't have to.
You stay in one window, and you spend your time on the program, not on the tools.
One IDE per language
An IDE is built for one language or platform, so it knows that language well: its rules, its libraries, and the mistakes people make in it. Here are some popular ones:
| IDE | Built for | Made by |
|---|---|---|
| IntelliJ IDEA | Java | JetBrains |
| Visual Studio | C# and .NET (runs on Windows) | Microsoft |
| PyCharm | Python | JetBrains |
| Android Studio | Android phone apps | |
| Xcode | iPhone and Mac apps (runs only on a Mac) | Apple |
In this course you use one of them: IntelliJ IDEA if you're learning Java, or Visual Studio if you're learning C#. You installed it during setup, and the next lesson shows you around it.
IDEs are big programs, often several gigabytes, with hundreds of menus. Don't let that worry you. You'll use a handful of those menus, and you'll learn each one when you need it.
Try it. Open your IDE and the project you made when you checked your setup. Find the button that runs the program and the one that runs it with the debugger. In IntelliJ IDEA, they're the green triangle and the green bug at the top of the window. In Visual Studio, they're the solid green triangle (with the debugger) and the outlined one (without it) in the toolbar. Run the program once.
Check yourself
2 questions to try on the lesson page.
So what
Every program you write goes through the same loop: write it, build it, run it, fix it. An IDE keeps that whole loop in one window, so your attention stays on the program.