Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

auto static import

$
0
0

I would like it if IntelliJ were more intelligent about

 

out.println and err.println.

 

It should either automatically, or with the tiniest prod insert

 

import static java.lang.system.out;

 

Rearranger often removes them if there are any syntax errors.

 

 

Further.

 

Assume I  have many references to an enum e.g. Hint.IN and Hint.OUT in

a class.  I would like it if I could with a keystroke or two convert

all the references to unqualified IN and OUT with an inserted

 

import static com.mindprod.stores.Hint.*;

 

 

ditto System.out.println -> out.println.

--

Roedy Green Canadian Mind Products http://mindprod.com

The art of strongly-typed language design is largely arranging

that errors are automatically detected as soon as possible

in the compose, compile, run cycle.

 


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>