以下の例では、スぺ―スとタブをそれぞれ · と ␉ として視覚的に表現しています。また、エディターではタブは 2 つのスペースに相当します。
例:
String colors = """
····red
␉ ␉ green
····blue""";
When printing such a string, the result will be:
··red
green
··blue
After the compiler removes an equal number of whitespace characters from the beginning of each line, some lines remain with leading spaces.
2021.1 の新機能です