Home  >  Article  >  Backend Development  >  Using dots instead of lines for indentation in IntelliJ

Using dots instead of lines for indentation in IntelliJ

WBOY
WBOYforward
2024-02-10 08:48:13886browse

在 IntelliJ 中使用点代替线进行缩进

Using dots instead of lines for indentation is a common code convention in IntelliJ, which can make the code structure clearer and easier to read. Indented lines in your code can be replaced with dots by enabling the "Use dots instead of lines" option in IntelliJ's settings. In this way, when viewing and editing code, it is easier to distinguish code blocks at different levels, improving the readability and maintainability of the code. PHP editor Zimo will introduce in this article how to enable and use dots instead of lines for indentation in IntelliJ to help developers better write standardized code.

Question content

Use the IntelliJ Go plug-in. I like seeing the indentation, but how do I change the characters used.

This line is too radical. I prefer Scala or dot in JSON plugin.

.

How to change?

Uses IntelliJ IDEA 2022.3.3 (Ultimate Edition), but is the same as IntelliJ IDEA 2023.1 Beta (Ultimate Edition).

Workaround

IDEA uses . as placeholder for spaces, and by default uses - as placeholder for tabs if you have Settings | . Edit|General|Appearance|Display Whitespace is enabled.

You can change this style to a style advanced setting like ><code> in Settings | , but tab rendering with dots is not possible here.

The above is the detailed content of Using dots instead of lines for indentation in IntelliJ. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:stackoverflow.com. If there is any infringement, please contact admin@php.cn delete