In Java, the usual convention is to have tab size 4. In Scala it's 2. In a Scala + Java project, is it possible to set these different tab sizes, depending on the language file?
Windows > Preferences > General > Editors > File Associations
Find *.scala in the list and ensure Scala editor is selected as the first option. if it is, then we just need to change the preferences for the scala editor.
Then:
project > properties > Scala formatter
The either select project specific settings or workspace specific settings, there should be an option where for how many spaces you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With