Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VSCode Creating New Files

VSCode Creating New Files

The Activity Bar is used to switch between different view modules, such as Explorer, Search, Source Control, Run and Debug, etc.

Hover the mouse over an icon in the Activity Bar to see the name of each view and its corresponding shortcut hint.

**Tip:** Click the view icon again, or press the shortcut, to open or close that view.

When you select a view in the Activity Bar, the primary side bar opens and displays that view's specific information.

After selecting the "Run and Debug" view, the primary side bar displays options for configuring a debug session:

Using the editor to view and edit files

Select the "Explorer" view in the Activity Bar.

Click the "New File..." button to create a new file in the workspace.

Enter index.html as the file name, then press Enter to confirm.

The new file is automatically added to the workspace and opened in the main editing area of the window.

Start typing HTML code in the index.html file; as you type, code suggestions (IntelliSense) automatically pop up.

We add more files to the workspace, and each file opens in a new editor tab.

VS Code supports arranging multiple editor windows vertically or horizontally so you can view multiple files at the same time.