You can create a new .txt, .css, .go, .html, .js, .less, .php, .pl, .py,
.qss, .rb, .scss, .sql, .ts, .twig, .volt, .xsl, .xml, .yaml
file.
The default shortcut for creating an empty .txt
file:
Ctrl+N
Tip | |
---|---|
You can specify the default file encoding in change it. or |
To create a new file
Option 1:
Choose the
main menu itemChoose the type of a new file from the drop-down list
Option 2:
Click the New Document drop-down button on the Main toolbar
Choose the type of a new file from the drop-down list
CodeLobster IDE lets you create the files with the original content appropriate
for the file purpose. For example, there are file templates for HTML. Generally, the
file extension for a template-based file is set automatically. For example, if you
create a JavaScript file, it gets the .js
extension; new CSS
and LESS files get the .css
and .less
extensions respectively.
Tip | |
---|---|
You can add a custom template with the special extension. |
For example, to create a new .html
file:
From the main menu, select
, and then select from the list. CodeLobster IDE creates a stub file based on the HTML file template and opens it in the editor.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> </body> </html>
You can edit basic templates or add custom templates with your extension and content. They will be available in the File create menu. CodeLobster IDE templates stored in the Templates folder (...user\AppData\Roaming\CodeLobsterIDE\Templates).
To add a new template file:
Name the new template file as its extension. For example,
Json.json, ADOC.adoc, ...
.
Copy the template file to the Templates folder.
Restart CodeLobster IDE application to apply changes.