Do you wish to make small code modifications directly on your store? Here is the installation process for Sublime Text, a lightweight and powerful code editor.
Step 1: Download and install Sublime Text.
Sublime Text is available for Windows, Mac, and Linux. Here is how you can download and install it:
- Visit the official Sublime Text website: https://www.sublimetext.com/
- Click on the download link corresponding to your operating system.
- Once the download is complete, open the installation file.
- Follow the on-screen instructions to install the editor on your computer.
Once installed, you may open Sublime Text. A window, similar to a classic text editor, will then open.
Step 2: Open a code file with Sublime Text
Now that the code editor is installed, you can use it to open your code files.
We explain how to open your code files directly from the FTP in this article.
Example of a CSS file opened with Sublime Text:
Optional step
After installation, it is recommended to configure Sublime Text to optimize your work with PrestaShop:
-
Open Sublime Text.
-
Install Package Control by following the instructions at https://packagecontrol.io/installation.
-
Once Package Control is installed, use it to install useful packages such as
SublimeLinter,phpfmtfor PHP, orJsFormatfor JavaScript. -
Configure these packages in the Sublime Text preferences to align with PrestaShop coding standards.
If you require additional steps, such as connecting Sublime Text to a remote server or adding specific functionalities through plugins, do not hesitate to consult the official documentation or the dedicated Sublime Text forums.
Frequently Asked Questions
What should I do if Sublime Text does not recognize the syntax of my files?
- Ensure that the file extension is correct and that Sublime Text has a package that supports this format. You can install additional packages via Package Control for improved syntax recognition.
Is it possible to use Sublime Text in collaboration mode?
- Sublime Text does not natively support real-time collaboration. However, plugins such as
SublimeText Live Sharecan be installed to enable collaborative editing. Please follow the setup instructions on the relevant plugin page.