
[VScode] Visual Studio Code : Getter & Setter 자동완성 기능 ( 확장프로그램 Getter and Setter Generator )
Tools/Visual Studio Code
2022. 3. 17. 10:39
보통 우리가 DTO나 VO를 사용할 때 필요한 변수들을 선언하고 Getter & Setter를 사용하는데... Eclipse나 IntelliJ에서 자주 사용되던 기능이 Generator이다. 한번에 Getter & Setter를 만들어주는데.. VScode에서는 Extension(확장)을 통해 확장프로그램을 설치해주면 사용이 가능하단다.. 확장프로그램에 들어가서 Getter라고 검색해보자. 거기서 Getter and Setter Generator을 설치해주도록 하자. package com.example.demo.service; import java.io.Serializable; public class indexVO implements Serializable{ private int commentId; pr..