• IntelliJ IDEA 使用经验总结


    一. 准备工作

      1. 点击此下载 IntelliJ IDEA 开发工具

    二. 注册

      1. 修改  C:WindowsSystem32driversetchosts ,在末尾添加  0.0.0.0 account.jetbrains.com

      2. 点击此获得注册码,进行注册

    三. 整合Maven

      1. Maven配置文件 settings.xml

    <localRepository>D:/Documents/.m2/repository</localRepository>
    
    <server>
      <id>releases</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
    <server>
      <id>snapshots</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
    <server>
      <id>thirdparty</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
    
    <profile>
      <id>nexus</id>
    
      <repositories>
        <repository>
          <id>release</id>
          <name>Nexus Rlease Repository</name>
          <url>http://localhost:8081/repository/maven-releases/</url>
        </repository>
    
        <repository>
          <id>snapshots</id>
          <name>Nexus Snapshots Repository</name>
          <url>http://localhost:8081/repository/maven-snapshots/</url>
        </repository>
    
        <repository>
          <id>thirdparty</id>
          <name>Nexus 3rd Party Repository</name>
          <url>http://localhost:8081/repository/maven-thirdparty/</url>
        </repository>
    
        <repository>
          <id>central</id>
          <name>Nexus Central Repository</name>
          <url>http://localhost:8081/repository/maven-central/</url>
        </repository>
    
      </repositories>
    </profile>
    <!-- 可对maven中的项目进行代码质量管理
    <profile>
      <id>sonar</id>
    
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
    
      <properties>
        <sonar.jdbc.url>jdbc:oracle:thin:@127.0.0.1:1521/orcl</sonar.jdbc.url>
        <sonar.jdbc.driver>oracle.jdbc.driver.OracleDriver</sonar.jdbc.driver>
        <sonar.jdbc.username>admin</sonar.jdbc.username>
        <sonar.jdbc.password>admin</sonar.jdbc.password>
        <sonar.host.url>http://127.0.0.1:9000/</sonar.host.url>
      </properties>
    
    </profile>
    -->
    
    <activeProfiles>
      <activeProfile>nexus</activeProfile>
    </activeProfiles>
    settings.xml

       2. IDEA配置Maven

    1. 打开 File-Settings,选择 Build,Execution,... - Build Tools - Maven
    2. 设置 Maven安装位置(Maven home directory) 

       3. 在 New Module 弹出框中,添加Maven属性 archetypeCatelog = internal 可加快工程创建

      

    四. 常用快捷键

    Ctrl+Click                快速打开光标处的类或方法(跳转到定义处)
    Ctrl+N 查找类
    Ctrl+Shift+Alt+N 查找类中的方法或变量
    Ctrl+Shift+F 在全局文件中查找字符串
    Ctrl+Shift+R 通过名称打开文件
    Double Shift 在项目的所有目录查找文件   Alt+Insert 可以生成构造器/Getter/Setter等 Alt+Enter 光标处,提供快速修复选择(光标位置不同,提供结果也会不一样) ctrl + Alt + ← 回退到上一个操作的地方
    ctrl + Alt + → 前进到下一个操作的地方
  • 相关阅读:
    计算机速成课 第十一集 编程语言发展史
    计算机速成课 第十集 早期的编程方式
    Sharepoint2013操作文档库内容的相关操作
    IE6 css fixed
    Sharepoint2013站点503错误的解决方法(图解)
    发布Sharepoint2013相关的WebService服务
    Spring 读书笔记Spring容器(二)
    (转)UML类图与类的关系详解
    (转)C# 操作 Excel 颜色索引对照
    (转)Silverlight显示本地图片、Stream转Byte数组
  • 原文地址:https://www.cnblogs.com/Mr-kevin/p/8412583.html
Copyright © 2020-2023  润新知