Home > Blockchain >  Why is VS Code showing this these labels for System.out.println()?
Why is VS Code showing this these labels for System.out.println()?

Time:04-14

I have the java extension pack installed. This just started happening today. Not sure if this is due to some json settings or something else. Code Img

CodePudding user response:

The Java tooltip is now showing you the variable names from the methods in question. System.out is a PrintStream. The relevant method signatures are PrintStream.print(String s) and PrintStream.println(String x).

CodePudding user response:

lets say you have a function setPassword that takes parameter of the name newPasswordandoldPassword. So, when you call that function, it would hightlight what the parameter is supposed to be. like


setPassword(newPassword: "SOME_NEW_PASSWORD",oldPassword:"SOME_OLD_PASSWORD")


This is supposed to reduce any confusion as to what value you entered is what. Extremely helpful when working with functions that take multiple parameters.

  • Related