Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create a file in VS Code

Use the ServiceNow extension to create a new file for your application with your project.

Before you begin

Import an application in your VS Code project to create a file within your project.

Role required: none.

Procedure

  1. Open the VS Code project containing your application.

  2. Click the Create File (

Image omitted: vscode-createfile.png
Create File button\) on the status bar on the bottom of the VSCode IDE.
You can also use a keyboard shortcut, Control+Shift+P on Windows or Command+Shift+P on MacOS, to open the command palette and choose **Now: Create New File** from the list.
  1. Select the file group from Select File Group list.
Image omitted: vscode-file-group.png
Available file groups
  1. Select the file type from the Select File Type list from the command palette at the top of the screen.
Image omitted: vscode-file-type.png
Available file types
  1. Enter a name for the file in the Create New File dialog box.

    The extension creates a file in your application on your local file system. The new file is added to your instance when you synchronize your workspace.

Parent Topic:ServiceNow Extensions for Visual Studio Code