Add copyright settings for IntelliJ
Change-Id: I347f926aca518050c932b36c4e8eda87f3229b41
This commit is contained in:
@@ -67,6 +67,20 @@ and configured correctly as can be verified by:
|
||||
NOTE: If IntelliJ notifies you later on that the EditorConfig settings override
|
||||
the code style settings, simply confirm that.
|
||||
|
||||
=== Copyright
|
||||
Copy the folder `$(gerrit_source_code)/tools/intellij/copyright` (not just the
|
||||
contents) to `$(project_data_directory)/.idea`. If it already exists, replace
|
||||
it.
|
||||
|
||||
=== File header
|
||||
By default, IntelliJ adds a file header containing the name of the author and
|
||||
the current date to new files. To disable that, follow these steps:
|
||||
|
||||
. Go to *File -> Settings -> Editor -> File and Code Templates*.
|
||||
. Select the tab *Includes*.
|
||||
. Select *File Header*.
|
||||
. Remove the template code in the right editor.
|
||||
|
||||
== Run configurations
|
||||
Run configurations can be accessed on the toolbar. To edit them or add new ones,
|
||||
choose *Edit Configurations* on the drop-down list of the run configurations
|
||||
|
6
tools/intellij/copyright/Gerrit_Copyright.xml
Normal file
6
tools/intellij/copyright/Gerrit_Copyright.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<component name="CopyrightManager">
|
||||
<copyright>
|
||||
<option name="myName" value="Gerrit Copyright" />
|
||||
<option name="notice" value="Copyright (C) &#36;today.year The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." />
|
||||
</copyright>
|
||||
</component>
|
7
tools/intellij/copyright/profiles_settings.xml
Normal file
7
tools/intellij/copyright/profiles_settings.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<component name="CopyrightManager">
|
||||
<settings default="Gerrit Copyright">
|
||||
<LanguageOptions name="__TEMPLATE__">
|
||||
<option name="block" value="false" />
|
||||
</LanguageOptions>
|
||||
</settings>
|
||||
</component>
|
Reference in New Issue
Block a user