What do comments in Java – IntelliJ source code mean?

When looking for the source code of the IntelliJ idea Community Edition project in GitHub, I found the following symbols in one of the files:

void m() {
    <selection><caret>System.out.println("");</selection>
}

What is this? What does the < Select > comment mean? Which tool are you working on?

afterEnumConstantWithArgs. The complete source of Java is as follows

// "Use existing implementation of 'm'" "true"
enum I {
    A("a") {
        void m() {
            <selection><caret>System.out.println("");</selection>
        }
    },B("b") {
        public void m() {
            System.out.println("");
        }
    };
    abstract void m();
    I(String s){}
}

Solution

First, you should notice that you are reading the test data, not the source file itself This is probably a simulation of a file that will be loaded into IntelliJ

< caret > will refer to the position of the caret in the file, that is, the flashing cursor< Select > will be the currently selected code, which is why it has a start and end tag

Source: read the code until I think of it

It seems to be parsed by this file

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>