WebStorm 2024.2 Help

How to move from Sublime Text to Webstorm

In this section, you’ll find some tips on how to migrate from Sublime Text to WebStorm.

Open or create your first project

One of the first things that you’ll notice after you download and install WebStorm is that you need a project to get started. The project-first approach helps WebStorm understand the context of what you will be working on better and provide you with more advanced coding assistance.

You have several options to choose from for starting your project:

  • Get from VCS – Get an existing project from Git or GitHub.

  • New Project – Create an empty project or generate a project from an existing template, like ones for React, Angular, or Vue.

  • Open – Open a project stored on your machine.

You can also start with our playground project to get a quick tour of some of the key features – go to New Project | New Project and check the Generate a playground project with onboarding tips box.

Welcome screen

Configure shortcuts

If you’ve never used WebStorm or other JetBrains IDEs before, getting used to new shortcuts can be challenging. Here are a few tips that can help you.

Switch to the Sublime Text keymap

If you aren’t ready to say goodbye to Sublime Text shortcuts just yet, you can switch to the Sublime Text keymap. To do so, go to Settings | Keymap, set Sublime Text or Sublime Text (macOS) as your default keymap, and save the changes.

Set the Sublime Text keymap as default

Learn WebStorm shortcuts

Learning WebStorm shortcuts will come in handy even if you decide to switch to another JetBrains IDE later on – the shortcuts are the same in almost all of them. Here’s what can help you learn them faster:

  • Memorize WebStorm’s most universal shortcutShift + Shift, or Search Everywhere. You can use it to find any file, action, class, or symbol, and see all the matches in one place.

  • Install Key Promoter XThis extension helps you learn essential shortcuts while working. When you use the mouse on a button inside the IDE, Key Promoter X shows you the shortcut you could have used instead.

  • Use the WebStorm shortcut cheat sheet – You can download the default WebStorm keymap reference for macOS or Windows and Linux.

WebStorm suggests a predefined keymap based on your environment. You can find this keymap in Settings | Keymap. If you change a shortcut for an action, WebStorm will store those changes in a copy of the predefined keymap and use that copy by default.

Set up your work environment

Being an IDE, WebStorm has a lot of powerful features built into it, allowing you to get straight to coding and handle more complex tasks with ease. Most of the time, everything is available out of the box in WebStorm, including the features for debugging, testing, and working with version control systems. Use the search in the top right-hand corner if you need help with setting up any specific functionality.

Check out this page for an overview of WebStorm’s features. For more details on the differences between code editors and IDEs, see this blog post.

Customize WebStorm

WebStorm’s UI might look overwhelming at first. You can customize it and turn off anything you don’t need. Here are some general customization tips.

Plugins

WebStorm’s plugins work pretty much the same way packages do in Sublime Text. They allow you to extend the built-in functionality and customize the IDE. To explore the available plugins, go to the Marketplace tab under Settings | Plugins. You can then install a plugin by clicking the Install button next to its name.

Here’s what WebStorm looks like with the popular Rainbow Brackets plugin installed. You can read this blog post to learn about some other popular plugins.

Customize WebStorm: Rainbow Brackets plugin installed

UI themes

WebStorm comes with only a few predefined themes, but there’s a variety of custom options to choose from. To explore them, go to Settings | Plugins and search for “theme” in the Marketplace tab.

Customize WebStorm: select UI theme

You can then go back to the editor and check how the themes you’ve installed look. Choose View | Quick Switch Scheme from the main menu or press Ctrl+` and select Theme. From there, you’ll be able to preview the available themes all in one go.

Distraction-free mode

You can switch to distraction-free mode whenever you want to focus on coding. In the main menu, go to View | Appearance and choose Enter Zen Mode or Enter Distraction Free Mode. The former works the same way Distraction Free mode works in Sublime Text. The latter doesn’t turn on the full-screen view.

Customize WebStorm: Zen mode

Go through the same steps but select Exit Zen Mode or Exit Distraction Free Mode when you’re done.

AI features

You can use GitHub Copilot and Tabnine in WebStorm – search for the corresponding plugins via the Marketplace tab in Settings | Plugins. Note that those plugins aren’t maintained by JetBrains. If you’re looking for an AI coding assistant that is natively integrated with our IDEs, you can try JetBrains AI Assistant.

Use AI Assistant

Replicate common Sublime Text workflows

Let’s see how you can set up a few things to work like they do in Sublime Text.

Command Palette

Search Everywhere is your replacement for Sublime Text’s Command Palette and a few other actions. You can use it to find any file, action, class, or symbol, and see all the matches in one place. To open Search Everywhere, press Shift + Shift or use the default Command Palette shortcut (if you’re on the Sublime Text keymap).

Customize WebStorm: Command Palette

Find and replace

WebStorm lets you find and replace text strings both within specific files and entire projects. To get started, in the main menu go to Edit | Find and select Find (for specific files) or Find in Files (for entire projects). To replace a text string, select Replace or Replace in Files under the same submenu instead.

Customize WebStorm: search and replace

Project view settings

WebStorm has the Project view, which lets you see the structure of your current projects and browse them. Its default behavior differs from that of Sublime Text. For instance, you need to double-click a file to open it in the editor. Here’s how you can change the default setup to match what you were used to in Sublime Text:

Project view: customize default settings

You can go to the Project view settings and select any or all of these options under Behavior:

  • Enable Preview Tab – Preview files you have selected in the Project tool window in the editor.

  • Open Files / Directories with Single Click – Open files or directories in the editor with one click.

  • Always Select Opened File – Auto-select the file that’s currently open in the Project tool window.

Code editing actions

WebStorm supports many of the code editing actions that you are used to from Sublime Text, such as extending selection, multiple cursors, adding comments, and more. You can find some of them under Edit in the main menu. You can also explore our collection of tips and tricks.

Actions on save

You can configure WebStorm to perform a specific action or run a tool like Prettier or ESLint every time you save your modified file. To do so, go to Settings | Tools | Actions on Save and tick the necessary boxes there. To learn more about performing actions on save, see this section.

Customize WebStorm: set up actions on save

How to get support

You can check out our community forum to find answers to many common questions and ask other WebStorm users for help.

You can always reach out to our support team if you get stuck. To submit a new ticket, select Help | Contact Support from WebStorm’s main menu. To report a bug or ask for a new feature for JavaScript and related technologies, please create a new issue here.

Last modified: 29 July 2024