On this page
You will need a text editor to work with October CMS templates, blueprints, and configuration files. While any plain text editor will work, a modern code editor makes the experience much better with features like syntax highlighting, file browsing, and integrated terminal. VS Code and PhpStorm both have extensions made for October CMS, which understand its theme files and plugins.
Recommended: VS Code
Visual Studio Code (VS Code) is a free, open-source editor that works on macOS, Windows, and Linux. It is the most popular choice for web development and has excellent support for the languages used in October CMS.
October Code Extension
Install the October Code extension. For theme development, it adds:
- Autocompletion of page, layout, partial, and content file names
- Autocompletion of Twig tags, filters, functions, and variables
- Autocompletion of components and their properties in the page settings
- Formatting of theme files
- Warnings for theme files that don't exist, with quick fixes to create them
- An action to extract a selection into a new partial
For plugin development, it adds:
- Code generators for controllers, models, migrations, console commands, and widgets
- Validation and autocompletion of YAML configuration files, such as form fields and list columns
- Autocompletion of model attributes, scopes, permission codes, and mail templates
- Commands to go to a related model, controller, or file
Search for "October Code" in the VS Code extensions panel, or install it from the VS Code Marketplace.
Built-in Terminal
VS Code includes an integrated terminal (open it with Ctrl+`), so you can run commands without switching windows. This is especially handy during installation and development.
PhpStorm
PhpStorm is a full-featured PHP IDE from JetBrains with deep Laravel support. It is paid, with a free trial.
October CMS Support Plugin
The October CMS Support plugin adds navigation and autocompletion for theme files:
- Ctrl+Click on a partial, page, layout, or content file name to open the file, for example in
{% partial "..." %},'...'|page, orlayout = "..." - Ctrl+Click on a component in the page settings, for example
[blogPosts], to open its PHP class - Autocompletion of partial, page, layout, content file, and component names
- Autocompletion of component properties, read from the component's
definePropertiesmethod - Warnings for missing theme files, with Alt+Enter to create them
- PHP highlighting, formatting, and autocompletion in the PHP code section of pages, layouts, and partials
The plugin is not listed on the JetBrains Marketplace, so it's installed from a file:
- Download the plugin's ZIP file from its latest release on GitHub.
- In PhpStorm, open Settings → Plugins.
- Click the gear icon, choose Install Plugin from Disk, and select the ZIP file.
- Restart PhpStorm when asked.
PhpStorm also has a built-in terminal, which you open with View → Tool Windows → Terminal.
Other Options
If VS Code or PhpStorm is not your style, these editors also work well:
- Cursor: An AI-enhanced code editor built on VS Code. The October Code extension installs in Cursor the same way, from its extensions panel.
- Sublime Text: Lightweight and fast. Available on all platforms.
Next Steps
With a text editor ready, it is time to install October CMS.
Was this article helpful?