Auto new html file vscode

To create a new HTML file in VSCode, you can follow these steps:

  1. Open VSCode and navigate to the folder where you want to create the new file.
  2. Click on the "File" menu and select "New File" or press Ctrl + N (Windows/Linux) or Cmd + N (Mac).
  3. In the "New File" dialog box, enter a name for your file, such as "index.html" or "myhtmlfile.html".
  4. Make sure the file type is set to "HTML" by selecting it from the dropdown menu or by typing ".html" in the file name.
  5. Click "Create" to create the new file.

Alternatively, you can also use the keyboard shortcut Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (Mac) to open the Command Palette, type "New File" and select "New File: Create a new file" from the dropdown list.

Once you've created the new file, you can start writing your HTML code in the editor.