简体   繁体   中英

How to preview the type of selected expression in IntelliJ IDEA

Consider the following Java statement:

stringbuilder.append("some string");

Where stringbuilder is a StringBuilder object.

Is it possible to select the expression stringbuilder.append("some string") (without the ; ) and ask IntelliJ to what type this expression evaluates?

Yes it is. Please look at the InteliJ Documentation

Pay attention to "Evaluating arbitrary expressions" section.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM