Code style
Configure IntelliJ to use the course’s formatting conventions. These settings must be made on each computer where you do course work. They are independent of the formatting preferences of an AI completion tool.
In IntelliJ, open File > Settings, or press Ctrl+Alt+S.
Open Editor > Code Style > Java. If IntelliJ says the selected scheme is read-only, duplicate it and name the copy CSAS2123.
On Tabs and Indents, clear Use tab character. Set Tab size, Indent, and Continuation indent to 2.
On Wrapping and Braces, set Hard wrap at to 100.
Open Editor > General > Appearance and enable Show line numbers.
Open Editor > Inspections > Java > Code style. Enable Instance field access not qualified with this and Instance method call not qualified with this.
Choose Apply and OK.
For a file that already contains tab characters, select its contents and use Edit > Convert Indents > To Spaces. Do not run this conversion blindly across supplied libraries or generated files.
To verify the configuration, open a Java file, confirm that line numbers are visible, and press Tab once at the beginning of an indented line. The caret should move two spaces and the file should contain spaces rather than a tab character.