Visual Studio Code trick to quickly assign fields in your JavaScript constructor

Опубликовано: 14 Май 2025
на канале: Coding With Adam
5,716
44

Visual Studio Code trick to quickly assign fields in your JavaScript constructor

Are your tired of typing the following in your JavaScript constructor:
this.name = name;
this.isGreen = isGreen;

Here is a cool trick that uses the multi cursor functionality in Visual Studio Code to quickly assign your fields in the constructor of your JavaScript class.