Skip to content
Sandeep Valapishetty edited this page Apr 10, 2020 · 2 revisions

Idea Intellij Settings

Copyright Docs:

This step will auto create copyright comments when you create new file/class

Preferences -> Copyright -> Copyright Profile

Add new Copyright profile by clicking + -> this will open a pop up and give new copyright profile name.

$file.fileName
Copyright (c) S-Developers Ltd.

All rights reserved.
This software is the confidential and proprietary information.

You can validate the velocity template whether the syntax is as per the IDE format or not

Once copyright profile is created, then we need to assign this to project scope

Copyright -> Select Default project copyright to select newly created copyright

Then select Project files and copyright option.

Verify whether copyright comment is created on every file that you edit and create.

Class and Header level Javadocs:

Preferences -> File and Code templates -> Includes Tab -> File header

Use below sample velocity template for the format

/**
 * Give as much as information about this class and its usage
 *
 * @author       Company Name (2001)
 * @version      1.0
 */

Method level comments are auto generated by the IDE. use /** and enter on method to generate method comments.

Custom Live Template:

Preferences -> Live Template -> Select Other -> Click +

Refer to sample usage of Live Template

Clone this wiki locally