IDEA For Mac使用技巧

× 文章目录
  1. 一.IDEA for MAC OS X 快捷键
  2. 二.IDEA设置默认生成版权注释功能
    1. 2.1 设置版权信息模板
    2. 2.2 设置生效作用域和使用的模板:
    3. 2.3 设置版权信息模板

摘要: 本文主要记录在项目开发过程中,使用IDEA For Mac的使用技巧。包括快捷键,注释模板和版权注释模板等。

一.IDEA for MAC OS X 快捷键

键位 功能介绍 使用说明
tab+空格 基本代码补全功能,包括类名、方法名、或者变量名 代码补全

二.IDEA设置默认生成版权注释功能

2.1 设置版权信息模板

在使用idea开发时,有时为了规范,我们需要在一个类头部增加版权信息,这个是可以让IDEA自动生成,只要配置下,就能像eclipse里一样,创建类文件时就生成民copyright信息,具体的步骤如图:

2.2 设置生效作用域和使用的模板:

2.3 设置版权信息模板

1
2
3
Copyright (c) $today.year xujin.org All right reserved.
This software is the confidential and proprietary information of xujin.org ("Confidential
Information"). You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement you entered into with xujin.org
如果您觉得文章不错,可以打赏我喝一杯咖啡!