zoukankan      html  css  js  c++  java
  • IntelliJ IDEA新安装设置

    一、说明

    IDEA的project等同于Eclipse的workspace,等同于Visual Studio中的solution。

    IDEA的module才是对应Eclipse中的project,等同于Visual Studio中的project。

    File -> Settings : 当前project的设置

    File -> New Projects Settings/Other Settings -> Settings for New Projects : 全局设置,创建新project的默认设置

    二、全局设置

    File -> New Projects Settings/Other Settings -> Structure for New Projects

    编码

    Editor -> File Encodings

    Tool -> SSH Terminal

    全部编码选UTF-8

    JDK

    Build, Execution, Deployment -> Compiler -> Java Compiler

    在Project bytecode version选择8

    Maven

    Build, Execution, Deployment -> Build Tool -> Maven

    在Maven home directory选择预先装好的Maven目录

    在User settings file选择settings.xml文件的路径

    Maven自动下载源码及文档

    Build, Execution, Deployment -> Build Tool -> Maven -> Importing

    在Automatically download勾选Sources和Documentation选项

    Git

    Version Control -> Git

    在Path to Git executable选择预先装好的Git的bingit.exe

    自动导入包和智能移除包

    Other Settings -> Auto Import

    勾选Add unambiguous imports on the fly和Optimize imports on the fly选项

    三、当前项目设置

    File -> Settings

     

    菜单栏及目录树字体

    Appearance & Behavior -> Appearance

    勾选Use custom font,选择自己偏好的字体和大小

    代码字体

    Editor -> Font

    选择自己偏好的字体和大小

    代码的斜体字

    Editor -> Color Scheme -> Language Defaults -> 取消所有Comments里面的Italic勾选

    Editor -> Color Scheme -> Java -> Class Fields -> 取消Constant和Static field的Italic勾选

    行数

    Editor -> General -> Appearance

    取消Show line numbers的勾选

    快捷键

    Keymap

    选择自己偏好的快捷键模板

    附录:常用的快捷键的英文名

    注释行:Comment with Line Comment
    注释块:Comment with Block Comment
    格式化代码:Reformat Code
    重构重命名:Rename

    鼠标悬停时显示方法说明

    Editor -> General

    勾选Show quick documentation on mouse move

    取消大小写敏感

    Editor -> General -> Code Completion

    取消勾选Match case选项

    英文单词纠错

    Editor -> Inspections

    取消Spelling的勾选

    Tomcat

    Build, Execution, Deployment -> Application Servers -> + -> Tomcat Server

    在Tomcat Home选择预先装好的Tomcat目录

    注意:在Win10下,装好Tomcat后,有可能需要先打开一下Tomcat目录,开启权限。

  • 相关阅读:
    java_IO流之 NIO
    No enclosing instance of type Outer is accessible. Must qualify the allocation with an enclosing instance of type Outer (e.g. x.new A() where x is an instance of Outer)
    JAVA I/O流 之入门
    10年老司机经验总结--程序员兼职的那些事
    python 去除html 超链接href 如何实现?
    《模式分类(原书第二版)》pdf格式下载电子书免费下载
    通知-招财猫问题通知专用
    Centos6.5 安装 python3.5 虚拟环境 virtualenvwrapper
    5.区块链平台以太坊从入门到精通之 以太网区块链网络
    4.区块链平台以太坊从入门到精通之 以太币
  • 原文地址:https://www.cnblogs.com/live41/p/13833300.html
Copyright © 2011-2022 走看看