Prestashop logo, Visit home page

Install a code editor on your computer

-

Would you like to make small code changes directly in your store? This article is for you! We'll guide you through the process of installing Sublime Text, a powerful yet lightweight code editor. Sublime Text is appreciated for its speed, customizability, simplicity and efficiency, making coding work more enjoyable, accessible and productive.

 

Step 1 : Download and install Sublime Text

Sublime Text is available for Windows, Mac and Linux. Here's how to download and install it:

  • Visit the official Sublime Text website: https://www.sublimetext.com/
  • Click on the download link for 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 can open Sublime Text. A window similar to a conventional text editor opens.

IMG-installer-editor 1.png

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 FTP in this article.

Example of a CSS file opened with Sublime Text :

IMG-installer-editor 2.png

Optional step

After installation, we recommend that you configure Sublime Text to optimize your work with PrestaShop :

  • Open Sublime Text.

  • Install Package Control by following the instructions on https://packagecontrol.io/installation.

    SublimeText1.mov

  • Once Package Control is installed, use it to install useful packages such asSublimeLinter, phpfmt for PHP, orJsFormat for JavaScript.

  • Configure these packages in the Sublime Text preferences to match PrestaShop coding standards.

If you need additional steps, such as connecting Sublime Text to a remote server or adding specific functionality via plugins, please consult the official documentation or the dedicated Sublime Text forums.

 

Frequently asked questions

What if Sublime Text doesn't recognize the syntax of my files?

  • Check that the file extension is correct and that Sublime Text has a package supporting this format. You can install additional packages via Package Control for better syntax recognition.

Can I use Sublime Text in collaboration mode?

  • Sublime Text does not natively support real-time collaboration. However, plugins such asSublimeText Live Share can be installed for collaborative editing. Follow the configuration instructions on the relevant plugin page.

 

Share

Was the article helpful?