In this chapter, you will learn step by step how to create a file in Sublime Text.
Step 1 − Use the option New File to create a file in Sublime Text editor.
Step 2 − Once the new file is available, you can insert the code, similar to any other text editor, and save the file in your working repository.
Step 3 − Once you save the associated file, Sublime Text editor provides a variety of options based on the type of file, for example .php for PHP scripts, .py for Python scripts and .java for Java code base.
Step 4 − As our code repository is on Python project, we will save the file as demo1.py, as shown below −