Home > Article > Development Tools > How to create js files in sublime
How to create JS files in Sublime
Creating JS files in Sublime Text is very simple and only requires the following steps:
1. Open the Sublime text editor:
Open Sublime Text, find and click the "File" menu in the upper left corner of the screen.
2. Create a new file:
From the File menu, select New>File. Alternatively, use the shortcut "Ctrl" "N" (Windows) or "Cmd" "N" (Mac).
3. Save the file as a JavaScript file:
In the pop-up "Save File" dialog box, select the location where you want to save the file. In the "File name" field, enter the name of the JS file you want to create and add the ".js" extension to the end. For example, "myScript.js".
4. Start writing JavaScript code:
After saving the file, Sublime Text will create an empty file with a ".js" extension. Now you can start writing JavaScript code.
5. Save changes:
After you finish writing the code, click the File menu and select Save. Alternatively, use the shortcut "Ctrl" "S" (Windows) or "Cmd" "S" (Mac).
Tip:
The above is the detailed content of How to create js files in sublime. For more information, please follow other related articles on the PHP Chinese website!