on-internet
← Community

Making specific code lines invisible in IDE (preferably eclipse)

Stack Overflow ·

I'm looking for a way to mask specific code lines in the IDE. I prefer doing it in eclipse, but intellij would be fine also. The purpose is, that when I have a method like this: public String serialize() { log.info("Starting to serialize"); StringBuilder sb = new StringBuilder(); sb.append("name: " + this.name); sb.append("age: " + this.age); sb.append("sex: " + this.sex); log.info("Finished serializing. The result is: " + sb.toString()); return sb.toString(); } I will make it look like this: public String serialize() { StringBuilder sb = new StringBuilder(); sb.append("name: " + this.name); s

Comments

Sign in or sign up to comment and upvote.

No comments yet.