- Replace all references of
IntelliJ IDEA → Preferences
toFile → Settings
if you are using Windows or Linux.
Supported IntelliJ versions: IntelliJ IDEA Ultimate Edition (required to work with Google App Engine). You can sign up for the free JetBrains student license if you are a student registered in an educational institution.
-
You need a Java 8 SDK defined in IntelliJ IDEA as follows:
-
You need the Google Cloud Code plugin installed and configured:
- During installation, you may encounter a prompt to disable the obsolete
Google App Engine Integration
plugin. AnswerYes
. - After installation, restart IntelliJ IDEA.
- (Optional) To configure the plugin to use a specific Cloud SDK installation,
click
Configure → Settings/Preferences
(orIntelliJ IDEA → Preferences
if a project is open), go toOther Settings → Cloud Code → Cloud SDK
, chooseUse a custom local installation
, and select your Google Cloud SDK directory.
- During installation, you may encounter a prompt to disable the obsolete
-
Import the project as a Gradle project as follows:
- Click
Import Project
(orFile → New → Project from Existing Sources...
if a project is open). - Select the local repository folder and click
Open
. - Select
Import project from external model
and thenGradle
. - Click
Next
. - Check
Use auto-import
and uncheckCreate separate module per source set
. - Ensure
Create directories for empty content root automatically
is unchecked. - Ensure
Use default gradle wrapper
is selected. - Ensure for
Gradle JVM:
that a JDK 8 is selected. - Click
Finish
. Wait for the indexing process to complete. - You should see a dialog box with the message:
Frameworks detected: Google App Engine Standard, Angular CLI frameworks are detected.
.
OR
Frameworks detected: Web, Google App Engine Standard, Angular CLI frameworks are detected
.
Click onConfigure
and ensure that onlyGoogle App Engine Standard
andAngular CLI
frameworks are shown, then clickOK
. If there are other frameworks shown, clickCancel
and wait until indexing is completed, then try again.If you closed or missed the dialog box, go to
View → Tool Windows → Event Log
. You should see the same message as the message in the dialog box. ClickConfigure
and thenOK
.
- Click
-
Configure the following project-specific settings (all can be found in
IntelliJ IDEA → Preferences → ...
):-
Indentation: 2 spaces are used in place of tabs for indentations. For Java and XML, 4 spaces are used instead. Configure for all the languages used in TEAMMATES:
- Go to
Editor → Code Style
. - Select
Project
forScheme
if you do not wish to make the settings the default for your IDE. - For
TypeScript
,JSON
,CSS
, andHTML
:- Ensure that
Use tab character
is unchecked, andTab size:
,Indent:
, andContinuation indent:
are2
,2
, and4
respectively.
- Ensure that
- Repeat the previous step for
Java
andXML
using the numbers4
,4
, and8
respectively.
- Go to
-
Text encoding:
UTF-8
is used for text encoding. Go toEditor → File Encodings
and ensure thatProject Encoding
andDefault Encoding for properties files
is set toUTF-8
.
-
-
Click
OK
. -
To move on to the development phase, refer to this document.