Question: How to setting VSCODE Auto Code Format to let get and set just 1 line? some of code just have 1 line in a block,
How to setting VSCODE Auto Code Format to let "get" and "set" just 1 line?
some of code just have 1 line in a block, how can I set after I use auto code format like the pic?


public int getId() {return id;} public String getMajor() {return major;} public String getName() {return name; } public double getScore() {return score;} public void setRadius(int radius) { this.radius = radius; } public int getCenterx() { return centerX; .. }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
