Early this morning, a small partner in the group ( click to add group ) asked such a question:
When we use IDEA to develop projects, there are usually many configuration items that need to be set. For example, for Java projects, it generally includes: JDK configuration, Maven configuration, etc. So what if you want to set a default project configuration?
First, find the entrance, find the File
New Projects Setup
menu item in the ---1b2b0608daf3371908a64458ef26ad1c--- menu, the details are as shown in the figure above:
Several functions here are used to configure some default options to be done when creating a new project.
Basic default configuration for new projects
Through Preferences for New Projects...
you can configure the basic default configuration of a new project, including a series of basic content such as appearance, editor, version control, build, execution, and deployment:
This also includes the question asked by the group friends ( click to add group ), how to set the configuration of the default Maven version, you can find the configuration place by searching for Maven here:
Run template for new project
The second menu item Run Configuration Templates...
can be used to configure our common running configuration templates, for example: if you also use some agents to assist development and debugging, you can enter the box in the following figure VM options
Add startup parameters so you don't need to manually configure it for each new project.
Default SDK settings
The third menu item Structure...
can be used to configure the default SDK for new projects:
Project template management
All the above configurations are mainly used as default configurations, but there can only be one default configuration, which can be regarded as the most commonly used configuration, and other configurations are more effective when they are only used occasionally. But sometimes we may have a variety of different common configurations. At this time, relying only on the default configuration is not enough.
At this time, the following two menu items Save Project as Template
and Manage Project Templates
function provide better support. We can report an existing project as a template by Save Project as Template
724b00f518bfb42e30c62ef34d80d0dd---, and manage the template in Manage Project Templates
.
Then when we want to create a new project, we can find the various project templates we created at the bottom left to create a new project:
Well, that's all for today's sharing. If this little trick is useful to you, then please help to like, watch, share, follow, and support it! If you think this series is not bad, you can pay attention to this column I am serializing: Playing with IDEA .
Welcome to my public account: Programmer DD. Learn about cutting-edge industry news for the first time, share in-depth technical dry goods, and obtain high-quality learning resources
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。