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
-
Open the VS Code project containing your application.
-
Click the Create File ([Omitted image "vscode-createfile.png"] Alt text: 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.
-
Select the file group from Select File Group list.
[Omitted image "vscode-file-group.png"] Alt text: Available file groups
-
Select the file type from the Select File Type list from the command palette at the top of the screen.
[Omitted image "vscode-file-type.png"] Alt text: Available file types
-
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
---
title: Create a file in VS Code
description: Use the ServiceNow extension to create a new file for your application with your project.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/application-development/vscode-create-file.html
release: brazil
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [ServiceNow Extensions for Visual Studio Code, Building pro-code applications, Developing your application, Classic app development, Building applications]
---
# 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/vscode-import-application.md) 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** \(\[Omitted image "vscode-createfile.png"\] Alt text: 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.
3. Select the file group from Select File Group list.
\[Omitted image "vscode-file-group.png"\] Alt text: Available file groups
4. Select the file type from the **Select File Type** list from the command palette at the top of the screen.
\[Omitted image "vscode-file-type.png"\] Alt text: Available file types
5. 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/synchronize-files.md) your workspace.
**Parent Topic:**[ServiceNow Extensions for Visual Studio Code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/vs-code.md)
| title | Create a file in VS Code |
| description | Use the ServiceNow extension to create a new file for your application with your project. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/application-development/vscode-create-file.html |
| release | brazil |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ServiceNow Extensions for Visual Studio CodeBuilding pro-code applicationsDeveloping your applicationClassic app developmentBuilding applications |