Prerequisites: JDK 11, update Intellij to the most recent version.
- Open Intellij (if you are not in the welcome screen, click
File
>Close Project
to close the existing project first) - Open the project into Intellij as follows:
- Click
Open
. - Select the project directory, and click
OK
. - If there are any further prompts, accept the defaults.
- Click
- Configure the project to use JDK 11 (not other versions) as explained in here.
In the same dialog, set the Project language level field to theSDK default
option. - After that, locate the
src/main/java/duke.Duke.java
file, right-click it, and chooseRun duke.Duke.main()
(if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see the GUI.
- list
- save
- todo
- deadline
- event
- remove
- done
- find
- tag
list
Lists out all the tasks added.
save
Saves the list of tasks to the local file.
todo [task_name]
Adds a todo task with the name task_name
.
todo Write essay
deadline [task_name] /by [date]
Adds a deadline task by the name task_name
.
date
must be in format DD/MM/YYYY.
deadline Fill in application /by 15/09/2021
event [task_name] /at [date]
Adds a event task by the name task_name
.
date
must be in format DD/MM/YYYY.
event Attend lecture /by 22/10/2021
remove [index]
Removes a task from the list.
index
refers to the index of the task in the list returned by the list command
remove 1
done [index]
Marks a task as done.
**index
**refers to the index of the task in the list returned by the list command.
done 1
find [search_string]
Finds the tasks with containing search_string
in its string form.
find add
tag [index] /tag [tag_name]
Tags a task with tag_name
.
**index
**refers to the index of the task in the list returned by the list command.
tag 1 /tag Temporary