ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.3 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://www.jetbrains.com/guide/java/tips/create-class/ |
| Last Crawled | 2026-04-01 11:18:48 (9 days ago) |
| First Indexed | 2024-11-29 09:10:33 (1 year ago) |
| HTTP Status Code | 200 |
| Meta Title | Create a new class - JetBrains Guide |
| Meta Description | Create a new class and a new package. |
| Meta Canonical | null |
| Boilerpipe Text | Create a new class and a new package.
Marit van Dijk
2024-11-29
Edit this page
tricks
java
In the
Project
tool window, use the shortcut
⌘N
(macOS) /
Alt+Ins
(Windows/Linux) to generate a new class. In the
New Java Class
popup, type the name of the class you want to create. You can type the fully qualified name here, to generate a new package containing your new class.
See Also
(documentation) IntelliJ IDEA Help - Generate code |
| Markdown | The JetBrains Guide will be shutting down on April 30, 2026. [more...](https://www.jetbrains.com/guide/shutdown/)
[](https://www.jetbrains.com/guide/)[Guide](https://www.jetbrains.com/guide/)
[Topics](https://www.jetbrains.com/guide/channels/)
[](https://www.jetbrains.com/guide/remote/)
[Remote Development](https://www.jetbrains.com/guide/remote/)
Technologies[JavaScript and TypeScript](https://www.jetbrains.com/guide/javascript/)[Python](https://www.jetbrains.com/guide/python/)[Java](https://www.jetbrains.com/guide/java/)[Go](https://www.jetbrains.com/guide/go/)[.NET](https://www.jetbrains.com/guide/dotnet/)[Kotlin](https://www.jetbrains.com/guide/kotlin/)
Solutions[Game Development](https://www.jetbrains.com/guide/gamedev/)[JetBrains AI Guide: How to Use AI in Your IDE](https://www.jetbrains.com/guide/ai/)[Remote Development](https://www.jetbrains.com/guide/remote/)[Databases](https://www.jetbrains.com/guide/databases/)[Django](https://www.jetbrains.com/guide/django/)
Hot tags[Amazon AWS](https://www.jetbrains.com/guide/tags/aws/)[Debugging](https://www.jetbrains.com/guide/tags/debugging/)[Git](https://www.jetbrains.com/guide/tags/git/)[Google Cloud](https://www.jetbrains.com/guide/tags/gcp/)[Gradle](https://www.jetbrains.com/guide/tags/gradle/)[Refactoring](https://www.jetbrains.com/guide/tags/refactoring/)
[Browse more content...](https://www.jetbrains.com/guide/explore/)
[Explore](https://www.jetbrains.com/guide/explore/)
[Java](https://www.jetbrains.com/guide/java/)[Java](https://www.jetbrains.com/guide/java/)
[Download](https://www.jetbrains.com/idea/)[Blog](https://blog.jetbrains.com/idea/)[Docs](https://www.jetbrains.com/help/)
## Create a new class
### Create a new class and a new package.
[](https://www.jetbrains.com/guide/authors/md/)
[Marit van Dijk](https://www.jetbrains.com/guide/authors/md/)
2024-11-29
[Edit this page](https://github.com/JetBrains/guide/edit/main/site/java/tips/create-class/index.md)
[tricks](https://www.jetbrains.com/guide/tags/tricks/) [java](https://www.jetbrains.com/guide/tags/java/)
In the *Project* tool window, use the shortcut `⌘N` (macOS) / `Alt+Ins` (Windows/Linux) to generate a new class. In the **New Java Class** popup, type the name of the class you want to create. You can type the fully qualified name here, to generate a new package containing your new class.
See Also
- [(documentation) IntelliJ IDEA Help - Generate code](https://www.jetbrains.com/help/idea/generating-code.html#Generating_Code.topic)
## Related Resources
[](https://www.jetbrains.com/guide/java/tips/jshell/)
[JShell](https://www.jetbrains.com/guide/java/tips/jshell/)
Use JShell in IntelliJ IDEA to quickly evaluate Java expressions.
[](https://www.jetbrains.com/guide/java/tips/endpoints-tool-window/)
[Endpoints tool window](https://www.jetbrains.com/guide/java/tips/endpoints-tool-window/)
Work with endpoints to your application in a dedicated tool window.
[](https://www.jetbrains.com/guide/java/tips/fix-all-in-file/)
[Fix all in file](https://www.jetbrains.com/guide/java/tips/fix-all-in-file/)
Fix all occurrences of the same problem in the file.
- [Privacy & Security](https://www.jetbrains.com/legal/docs/privacy/privacy/)
- [Terms of Use](https://www.jetbrains.com/legal/docs/company/useterms.html)
- [Trademarks](https://www.jetbrains.com/legal/trademarks/)
- [Legal](https://www.jetbrains.com/legal/)
- [Genuine tools](https://www.jetbrains.com/genuine-tools/)
Copyright © 2000–2026 [JetBrains](https://www.jetbrains.com/) s.r.o. |
| Readable Markdown | ### Create a new class and a new package.
[](https://www.jetbrains.com/guide/authors/md/)
[Marit van Dijk](https://www.jetbrains.com/guide/authors/md/)
2024-11-29
[Edit this page](https://github.com/JetBrains/guide/edit/main/site/java/tips/create-class/index.md)
[tricks](https://www.jetbrains.com/guide/tags/tricks/) [java](https://www.jetbrains.com/guide/tags/java/)
In the *Project* tool window, use the shortcut `⌘N` (macOS) / `Alt+Ins` (Windows/Linux) to generate a new class. In the **New Java Class** popup, type the name of the class you want to create. You can type the fully qualified name here, to generate a new package containing your new class.
See Also
- [(documentation) IntelliJ IDEA Help - Generate code](https://www.jetbrains.com/help/idea/generating-code.html#Generating_Code.topic) |
| Shard | 95 (laksa) |
| Root Hash | 2692805634082760095 |
| Unparsed URL | com,jetbrains!www,/guide/java/tips/create-class/ s443 |