Code Monkey home page Code Monkey logo

idea-tutorial's Introduction

idea-tutorial

简单的IDEA入门记录, 以 2018.2 为准

破解安装

获取最新破解补丁和注册码

破解补丁下载

IDEA安装位置/bin下放入破解补丁, 修改idea.vmoptions文件, 增加

-javaagent:JetbrainsCrack-2.10-release-enc.jar
  • Mac 应该要先打开一次程序, 因为会有验证文件完整性的过程
  • 注意和下载的文件对应
  • Windows 需要同时设置两个.vmoptions文件
  • Windows 可能需要将-javaagent设为绝对路径
  • 打开欢迎界面 Configure -> Manage Licenses -> Activation Code 输入注册码

默认设置

不打开任何项目的界面 :

检查默认Java SDK

Configure -> Project Defaults -> Project Structure

设置 JDK 文档

  • 官网下载 javadoc
  • Configure -> Project Defaults -> Project Structure javadoc

设置 Maven

Configure -> Preference -> Build Tools -> Maven -> Importing

  • 自动更新 Import Maven projects automatically
  • 自动下载源码和文档 Automatically Download: Sources and Documentation

JavaDoc

Configure -> Preference -> Editor -> General -> Show quick documentation on mouse move

感觉体验不是很好, 还是自己 ctrl+J

Java 自动导入和移除包

Configure -> Preference -> Editor -> General -> Auto Import

  • 自动导包 Add unambiguous imports on the fly
  • 导包优化 Optimize imports on the fly, 会 import java.io.* 不推荐

自动补全设置

Configure -> Preference -> Editor -> General -> Code Completion

显示工具栏

View -> Toolbar

阿里巴巴集团开发规约插件

安装流程查看官网

似乎顺便安装了 Hotcode 2

常用快捷键

  • cmd+alt+L 格式化代码
  • ctrl+J 查看文档
  • cmd+delete 删除当前行
  • cmd+B/cmd+鼠标 前往定义
  • alt+enter
    • 在包重复时提供选择
  • cmd+N 生成 getter / setter
  • cmd+F9 Build 项目
  • cmd+Z / cmd+shift+Z undo / redo
  • cmd+F / cmd+R Find / Replace

更多 mac win

从源码导入 Module

File -> New -> Module From Existing Source

Maven 命令学习

  • validate - validate the project is correct and all necessary information is available
  • compile - compile the source code of the project
  • test - test the compiled source code using a suitable unit testing framework. These tests should not require + the code be packaged or deployed
  • package - take the compiled code and package it in its distributable format, such as a JAR.
  • verify - run any checks on results of integration tests to ensure quality criteria are met
  • install - install the package into the local repository, for use as a dependency in other projects locally
  • deploy - done in the build environment, copies the final package to the remote repository for sharing with other developers and projects.

常用命令

  • mvn clean 清空
  • mvn package 打包 jar
  • mvn install 安装到本地仓库

HotCode2 使用

  1. 开启 IDEA 插件 (安装 阿里巴巴集团开发规约 时已自带)
  2. 运行程序
  3. 修改代码
  4. Build 项目

idea-tutorial's People

Contributors

yu961549745 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.