IDEA初始化配置

article/2025/9/14 2:23:23

IDEA初始化配置

  • 1.文件编码配置
  • 2. 修改快捷键
  • 3.智能提示
  • 4.优化导包
  • 5.代码不折叠
  • 6.不打开上一次关闭的工程,新窗口打开新工程
  • 7.Ctrl + 滚轮改变字体大小
  • 8.不提示更新软件
  • 9.注释智能缩进
  • 10.同一包下的类不以*代替
  • 11.设置字体
    • 设置编辑器字体
    • 设置控制台字体
  • 12.类文件头模板
  • 13.参数智能提示
  • 14.git自动添加
  • 15.maven配置
  • 16.几大优秀插件
  • 17.自动编译
  • 18.序列化ID
  • 19.Autowired爆红
  • 20.打开工具栏
  • 21.文件忽略
  • 22.快捷键
  • 23.重复代码
  • 24 创建MyBatis配置文件模板
  • 25 创建mybatis-mapper文件模板
  • 26 HTML格式化问题
  • 27.快捷注入 Autowired
  • 28. 快捷写 SpringBoot 启动类
  • 29. 创建 web.xml 模板文件
  • 30. 创建 hbm 模板文件
  • 31. 创建 hibernate.cfg 模板文件
  • 31. 修改 vue 模板文件
  • 32. 创建 logback.xml 模板文件
  • 33. 创建 log4j.xml 文件
  • 34. 添加 vue get 请求模板
  • 35. 添加 vue post 请求模板

1.文件编码配置

文件 编码

2. 修改快捷键

在这里插入图片描述

3.智能提示

在这里插入图片描述

4.优化导包

在这里插入图片描述

5.代码不折叠

在这里插入图片描述

6.不打开上一次关闭的工程,新窗口打开新工程

在这里插入图片描述

7.Ctrl + 滚轮改变字体大小

在这里插入图片描述

8.不提示更新软件

在这里插入图片描述

9.注释智能缩进

在这里插入图片描述

10.同一包下的类不以*代替

在这里插入图片描述

11.设置字体

设置编辑器字体

在这里插入图片描述

设置控制台字体

在这里插入图片描述

12.类文件头模板

在这里插入图片描述

/*** @ClassName ${NAME}* @Description* @Author ${USER}* @Time ${DATE} ${TIME}* @Version 1.0*/

13.参数智能提示

在这里插入图片描述
在这里插入图片描述

14.git自动添加

在这里插入图片描述

15.maven配置

maven是依赖管理工具包,虽然IDEA自带,这个不好用,我们要自己配置
https://maven.apache.org/download.cgi
在这里插入图片描述

下面是我的配置
在这里插入图片描述
在这里插入图片描述
maven setting.xml

<?xml version="1.0" encoding="UTF-8"?><!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
--><!--| This is the configuration file for Maven. It can be specified at two levels:||  1. User Level. This settings.xml file provides configuration for a single user,|                 and is normally provided in ${user.home}/.m2/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -s /path/to/user/settings.xml||  2. Global Level. This settings.xml file provides configuration for all Maven|                 users on a machine (assuming they're all using the same Maven|                 installation). It's normally provided in|                 ${maven.conf}/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.||-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><!-- localRepository| The path to the local repository maven will use to store artifacts.|| Default: ${user.home}/.m2/repository<localRepository>/path/to/local/repo</localRepository>--><localRepository>D:\maven_local_space</localRepository><!-- interactiveMode| This will determine whether maven prompts you when it needs input. If set to false,| maven will use a sensible default value, perhaps based on some other setting, for| the parameter in question.|| Default: true<interactiveMode>true</interactiveMode>--><!-- offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>--><!-- pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.|--><pluginGroups><!-- pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>--></pluginGroups><!-- proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.|--><proxies><!-- proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>--></proxies><!-- servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.|--><servers><!-- server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).|| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are|       used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>--><!-- Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>--></servers><!-- mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.|| It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred| server for that repository.|--><mirrors><!-- mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>--><mirror><id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><mirrorOf>central</mirrorOf>       </mirror></mirrors><!-- profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is| dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact|       repositories, plugin repositories, and free-form properties to be used as configuration|       variables for plugins in the POM.||--><profiles><!-- profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>--><!--| Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>|   <groupId>org.myco.myplugins</groupId>|   <artifactId>myplugin</artifactId>||   <configuration>|     <tomcatLocation>${tomcatPath}</tomcatLocation>|   </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to|       anything, you could just leave off the <value/> inside the activation-property.|<profile><id>env-dev</id><activation><property><name>target-env</name><value>dev</value></property></activation><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath></properties></profile>--></profiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>-->
</settings>

16.几大优秀插件

在这里插入图片描述

idea插件官网

 17. 快捷键

17.自动编译

在这里插入图片描述

18.序列化ID

在这里插入图片描述

19.Autowired爆红

在这里插入图片描述

20.打开工具栏

在这里插入图片描述

21.文件忽略

在这里插入图片描述

22.快捷键

退出代码提示:ESC
移动一行:Shift + Alt + ↑/↓
格式化: Ctrl + Alt + L
提取共性代码:Ctrl + Alt + M
代码自动填写:Alt + Enter
代码提示:Ctrl + Alt + 空格
代码跨选择:Ctrl + Alt
删除当前行:Ctrl + Y
复制当前行:Ctrl + D
向下换行:Shift + Enter
向上换行:Ctrl + Alt + Enter
查看属性方法详细:Ctrl + Q
查看属性方法在哪些地方使用了:Ctrl + F7
搜索文件:Ctrl + Shift
单行注释:Ctrl + / 
块注释:Ctrl + Shift + /
多行单选:Alt + A
代码选择(列如:try+catch):Ctrl + Alt + T
在当前页搜索:Ctrl + F
全局搜索:Ctrl + Shift + F
方法折叠:Ctrl +  -
方法展开:Ctrl + +
复制方法路径:Ctrl + Shift + C
关闭打开的类: Ctrl + F4
在路径中查找: Ctrl + Shift + F7【调试部分、编译】
Ctrl+F2,停止
Alt+Shift+F9,选择 Debug
Alt+Shift+F10,选择 Run
Ctrl+Shift+F9,编译
Ctrl+Shift+F10,运行
Ctrl+Shift+F8,查看断点
F8,步过
F7,步入
Shift+F7,选择到底要 Debug 进入哪一个方法
Shift+F8,步出
Alt+Shift+F8,强制步过
Alt+Shift+F7,强制步入
Alt+F9,运行至光标处
Ctrl+Alt+F9,强制运行至光标处
F9,恢复程序
Alt+F10,定位到断点
Ctrl+F8,切换行断点
Ctrl+F9,生成项目

23.重复代码

在这里插入图片描述

24 创建MyBatis配置文件模板

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration  PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration></configuration>

在这里插入图片描述

25 创建mybatis-mapper文件模板

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapperPUBLIC "-//mybatis.org//DTD Mapper 3.0//EN""http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace=""></mapper>

在这里插入图片描述

26 HTML格式化问题

在这里插入图片描述

27.快捷注入 Autowired

在这里插入图片描述

@Autowired
private $VAR$ $ENDS$;

28. 快捷写 SpringBoot 启动类

在这里插入图片描述

public static void main(String[] args){SpringApplication.run($VAR$.class, args);
}

29. 创建 web.xml 模板文件

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8" ?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaeehttp://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"version="4.0"metadata-complete="true"></web-app>

30. 创建 hbm 模板文件

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE hibernate-mappingPUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package=""></hibernate-mapping>

31. 创建 hibernate.cfg 模板文件

在这里插入图片描述

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN""http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration></hibernate-configuration>

31. 修改 vue 模板文件

在这里插入图片描述

<template></template><script>
export default {name: '$COMPONENT_NAME'}
</script><style scoped></style>

32. 创建 logback.xml 模板文件

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true"></configuration>

33. 创建 log4j.xml 文件

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"><appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"><param name="Encoding" value="UTF-8"/><layout class="org.apache.log4j.PatternLayout"><param name="ConversionParttern" value="%-5p %d{MM-dd HH:mm:ss,SSS} %m  (%F:%L) \n"/></layout></appender><logger name="java.sql"><level value="debug" /></logger><logger name="org.apache.ibatis"><level value="info" /></logger><root><level value="debug" /><appender-ref ref="STDOUT"/></root>
</log4j:configuration>

34. 添加 vue get 请求模板

在这里插入图片描述

this.$http({url: this.$http.adornUrl("$START$"),method: "get",params: this.$http.adornParams({})
}).then(({data}) => {}).catch(error => {});

35. 添加 vue post 请求模板

在这里插入图片描述

this.$http({url: this.$http.adornUrl("$START$"),method: "post",data: this.$http.adornData(data, false)
}).then(({ data }) => {}).catch(error => {});

http://chatgpt.dhexx.cn/article/q1LK1i0w.shtml

相关文章

IDEA基本配置

1.设置maven 1.在File->settings->搜索maven 2.Mavan home directory--设置maven安装包的bin文件夹所在的位置 3.User settings file--设置setting文件所在的位置 4.Local repository--设置本地仓库 2.IDEA 设置代码行宽度 1.在File->settings->Editor->Code St…

IDEA常用配置汇总

1、基础配置&#xff1a; BOM&#xff08;Byte Order Mark&#xff09;&#xff0c;字节顺序标记&#xff0c;出现在文本文件头部&#xff0c;Unicode编码标准中用于标识文件是采用哪种格式的编码。Windows就是使用BOM来标记文本文件的编码方式的。UTF-8不需要BOM来表明字节顺序…

2021 最新 IntelliJ IDEA 详细配置步骤演示(图文版)

Appearance(外观) 1. 设置IDEA主题与字体 勾选 Sync with OS 会同步系统更改 勾选Use custom font 选择代码字体&#xff0c;Size选择字号 2. Accessibility(无障碍) 辅助功能 Support screen readers: 为 IntelliJ IDEA 启用屏幕阅读器支持。 User contrast scrollbars: …

2020年IntelliJ IDEA最新最详细配置图文教程

IDEA使用设置   继续idea最新安装的步骤后,对IDEA工作开发进行配置,让开发的时候更加便利顺手。   点击欢迎页右下角"Configure",选择"Settings",进入全局设置界面。   注意:IDEA有全局配置和项目配置两种设置,在欢迎页进行的Settings是对全局…

IDEA的基本配置

IDEA基本配置&#xff08;setting&#xff09; 前言 本文章是基于idea2019.2.2的全局setting设置 1、控制台中文乱码 进入idea安装目录下的bin目录&#xff0c;找到文件&#xff1a;idea.exe.vmoptions&#xff0c;idea64.exe.vmoptions 根据系统是32位或64位选择其中一个配…

IDEA2021.2安装与配置(持续更新)

IDEA2021.2安装与配置&#xff08;持续更新&#xff09; 一、下载二、安装三、配置3.1、配置全局生效3.2、首次启动3.3、激活3.4、字体&#xff0c;字体大小3.5、配色方案3.6、注解生效3.7、自动导包移包3.8、自动补全快捷键3.9、格式化代码3.10、代码忽略大小写3.11、git配置3…

Pointnet++学习

1、点云的归一化与反归一化 归一化的作用&#xff1a; 数据归一化后&#xff0c;最优解的寻优过程明显会变得平缓&#xff0c;更容易正确的收敛到最优解 def pc_normalize(pc):"""对点云数据进行归一化:param pc: 需要归一化的点云数据:return: 归一化后的点云…

PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation

基本简介 论文下载地址&#xff1a;https://arxiv.org/abs/1612.00593 代码开源地址&#xff1a;https://github.com/charlesq34/pointnet 作者以及论文信息如下&#xff1a; 论文作者的公开课链接&#xff1a;https://www.shenlanxueyuan.com/channel/8hQkB6hqr2/detail&…

PointNet系列代码复现详解(1)—PointNet分类部分

想尽快入门点云&#xff0c;因此就从这个经典的点云处理神经网络开始。源码已经有了中文注释&#xff0c;但在一些对于自己不理解的地方添加了一些注释。欢迎大家一起讨论。 代码是来自github&#xff1a;GitHub - yanx27/Pointnet_Pointnet2_pytorch: PointNet and PointNet …

PointNet、PointNet++原理解析

PointNet 算法结构 PointNet 原理解析 已知&#xff1a; N个点&#xff0c;每个点的信息x,y,z。 MLP: MLP(Multi-Layer Perceptron)&#xff0c;即多层感知器&#xff0c;是一种趋向结构的人工神经网络&#xff0c;映射一组输入向量到一组输出向量。 简单的可以用全连接网络实…

PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space

基本简介 论文下载地址&#xff1a;https://arxiv.org/pdf/1706.02413.pdf 代码开源地址&#xff1a;https://github.com/charlesq34/pointnet2 作者以及论文信息如下&#xff1a; 论文作者的公开课链接&#xff1a;https://www.shenlanxueyuan.com/channel/8hQkB6hqr2/detai…

用pointnet++分类自己的点云数据

目录 一、简单介绍pointnet 1.1 三维数据的表示方法 1.2 pointnet算法 1.3 pointnet算法的提出 二、pointnet如何运行自己的数据集&#xff1f; 2.1 确定数据集的基本情况 2.2 以点云分割为例 2.2.1 数据标注 2.2.2 选择模型 2.2.3 数据预处理 2.2.4 选择模型进行修…

PointNet代码详解

PointNet代码详解 最近在做点云深度学习的机器人抓取&#xff0c;这篇博客主要是把近期学习PointNet的一些总结的知识点汇总一下。 PointNet概述详见以下网址和博客&#xff0c;这里也就不再赘述了。 三维深度学习之pointnet系列详解 PointNet网络结构详细解析 PointNet论文理…

PointNet++训练自己的数据集(附源码)

本文针对PointNet强大的三维点云分类功能&#xff0c;详细讲解怎么训练自己的数据集&#xff0c;在此之前&#xff0c;需要确保已经能够跑通源码的训练和测试&#xff0c;如果没有&#xff0c;请参考PointNet的源码运行。 数据放置 1.1. 在mytensor_shape_names.txt中配置自己的…

PointNet网络详解+分类解读

PointNet设想的由来 说到如何设计PointNet网络的&#xff0c;那我们首先就要从输入数据的特性说起。点云数据是一种不规则的数据&#xff0c;在空间上和数量上可以任意分布&#xff0c;由于其特性而不能直接适用于传统CNN。以往的研究者想出了很多种处理点云方式&#xff1a; …

PointNet论文及代码详细解析

基本都是搬运的知乎刘昕宸大佬的文章&#xff0c;自己也是想记录学习一下 原文链接&#xff1a; https://zhuanlan.zhihu.com/p/264627148 这篇论文的题目是&#xff1a;PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation 首先回答三个问题作为引…

3D点云(3D point cloud)及PointNet、PointNet++

文章目录 一、什么是3D点云二、基于3D点云的一些任务三、如何提取3D点云数据的特征&#xff1a;PointNet&#xff08;1&#xff09;在PointNet之前也有工作在做点云上的深度学习&#xff08;2&#xff09;PointNet&#xff08;1&#xff09;置换不变性&#xff08;Permutation …

PointNet++:Deep Hierarchical Feature Learning on Point Sets in a Metric Space

在上一篇文章中&#xff0c;提及了3D点云分类与分割的开山鼻祖——PointNet&#xff1a;https://blog.csdn.net/Alkaid2000/article/details/127253473&#xff0c;但是这篇PointNet是存在有很多不足之处的&#xff0c;在文章的末尾也提及了&#xff0c;它没有能力捕获局部结构…

Pointnet系列(二)Pointnet++

简介 作者在先前的研究中提出了Pointnet&#xff0c;此论文是Pointnet的改进版Pointnet。提出改进的理由是因为Pointnet无法很好地捕捉由度量空间引起的局部结构问题&#xff0c;由此限制了网络对精细场景的识别以及对复杂场景的泛化能力。 Pointnet的基本思想是对输入点云中…

PointNet++详解与代码

在之前的一篇文章《PointNet&#xff1a;3D点集分类与分割深度学习模型》中分析了PointNet网络是如何进行3D点云数据分类与分割的。但是PointNet存在的一个缺点是无法获得局部特征&#xff0c;这使得它很难对复杂场景进行分析。在PointNet中&#xff0c;作者通过两个主要的方法…