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

Using dots instead of lines for indentation in IntelliJ

WBOY
Release: 2024-02-10 08:48:13
forward
945 people have browsed it

在 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!

Related labels:
source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template