A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.jetbrains.com/webstorm/help/using-code-editor.html below:

Editor basics | WebStorm Documentation

Editor basics

The WebStorm editor is the main part of the IDE that you use to create, read, and modify code.

The editor consists of the following areas:

  1. The scrollbar shows errors and warnings in the current file.

  2. Breadcrumbs help you navigate inside the code in the current file.

  3. The gutter shows line numbers, annotations, and context-dependent action icons.

  4. Tabs show the names of the currently opened files.

Navigation

You can use various shortcuts to switch between the editor and different tool windows, change the editor size, switch focus, or return to the original layout.

Maximize editor pane Switch the focus from a window to the editor Return to the editor from the command-line terminal

This functionality relies on the Terminal plugin, which you need to install and enable. For more information, refer to Install a plugin from Marketplace.

Jump to the last active window Use the switcher for navigation
  1. To jump between the opened files and tool windows with the switcher, press Ctrl+Tab.

  2. Keep Ctrl pressed to leave the switcher popup open.

  3. Press Tab to move between elements. Press Backspace to remove the selected file from the list and close it in the editor.

Change the IDE appearance

You can switch between schemes, keymaps, and viewing modes.

  1. Press Ctrl+`.

  2. In the Switch menu, select the option you need and press Enter. Use the same shortcut Ctrl+` to undo your changes.

You can adjust the color scheme settings, including the High contrast color scheme for people with eyesight deficiency, in . To adjust the keymap settings, go to .

Jump to the navigation bar

When you work with code in the editor, WebStorm displays code analysis results, that include errors and warnings, on the scrollbar. You can check whether your code has issues and quickly navigate to them.

The top of the scrollbar has the Inspections widget that gives you a brief summary of the code problems. Click the widget to get more information on each detected problem in the Problems tool window.

For more information, refer to Instant analysis of the current file.

The stripes on the scrollbar indicate places where WebStorm found a problem. Hover over a stripe to see a tooltip describing the problem, or click the stripe for quick navigation.

It is normal to see many stripes while you are working on a file. Many of these errors, warnings, and suggestions are eventually resolved as you complete the code. Should any errors remain when you feel your code is complete, we recommend that you explore and resolve them before compiling your project.

The different colors of stripes indicate the severity of the problems from an error marked in red to a TODO comment marked in blue, but you can change the displayed colors if you need. For more information, refer to Change inspection severity.

Editor tabs

You can close, hide, and detach editor tabs. Every time you open a file for editing, a tab with its name is added next to the active editor tab.

Go to to see what additional actions you can perform with the editor tabs. For example, Close Tabs to the Left or Close Tabs to the Right.

You can use the tab's context menu for the same purpose or located in the editor.

To configure the settings for editor tabs, use the page. Alternatively, right-click a tab and select Configure Editor Tabs from the list of options.

Open or close tabs Copy path or file name
  1. Right-click the tab.

  2. From the list that opens, select Copy Path/Reference.

  3. From the list that opens, select your copy option.

    WebStorm copies the item to the clipboard, and you can paste it (Ctrl+V) wherever you need.

Move, remove, or sort tabs Pin or unpin a tab

You can pin an active editor tab so that it stays open when the tab limit is reached or when you use the Close Other Tabs command.

Detach a tab

When you detach a tab, the tab opens in a separate window, and the window becomes reserved for the detached tab.

If you try to detach another tab from the main frame, it will be opened in the window with the already detached tab. You can position the newly detached tab anywhere you like (on the left, right, bottom, or top). You can also drag different tool windows to that frame.

Switch between tabs Assign a shortcut for the opened tab
  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. In the list of directories, click and select the directory for which you want to add a shortcut. The maximum number of tabs to which you can assign shortcuts is 9.

Change the default tab limit

WebStorm limits the number of tabs that you can open in the editor simultaneously (the default tab limit is 10).

  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. In the Closing Policy section, adjust the settings according to your preferences and click OK.

If the tab limit equals 1, the editor will display only one file at a time (there will be no tabs). If you want the editor to never close any tabs, type some unreachable number.

Open files in the preview tab

The preview tab allows you to view files in a single tab one by one without opening each file in a new tab. This is helpful if you need to look through several files without exceeding the tab limit.

  1. In the Project tool window Alt+1, click and select Enable Preview Tab.

    You can also enable the preview tab in .

  2. In the Project tool window Alt+1, select a file that is not open in any other tab yet.

    The name of the file is written in italics to indicate preview mode. Any other file that you select will replace the previous one in the preview tab.

    Start editing the file or double-click the file's tab to exit preview mode and convert the preview tab into a regular tab.

    Note that when the preview tab is enabled, the Open Files with Single Click option is ignored. Double-click a file to open it in a regular tab.

Alternatively, preview files in a popup without opening a separate tab. Select the necessary file in the Project tool window and press Space. For more information, refer to Preview files from the Project tool window.

Display multiple tabs

When you open more tabs than your screen can fit, you can place them in one or several rows.

  1. Press Ctrl+Alt+S to open settings and then select .

  2. In the Show tabs in section, select one of the following options:

Change the font size in tabs
  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. In the Size field, specify the font size and click OK to save the changes.

    Keep in mind that the font size will change not only for the tabs but for tool windows as well.

Split screen

WebStorm offers various actions that you can invoke from the main or context menu, the editor, or the Project tool window to split the editor screen.

Move the split screen
  1. Place the caret inside the desired split frame.

  2. In the main menu, go to .

  3. From the list of options, select one of the following options:

    You can assign a shortcut to each option and use the keyboard to stretch the split frame.

    To move between the split frames, go to . From the list of options, select Goto Next Splitter ⌥ ⇥ or Goto Previous Splitter ⌥ ⇧ ⇥, respectively.

Font

You can configure and change the font, its size, and font ligatures. The font size change can be applied to one editor tab only or globally.

Configure the font and font ligatures
  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. Select the desired font from the list, specify its Size and Line height. You can also enable ligatures and configure typography settings.

  3. Click OK to save the changes.

Change font size from the editor
  1. In the Settings dialog (Ctrl+Alt+S) , go to (Mouse Control section).

  2. Select the Change font size with Ctrl+Mouse Wheel in option.

  3. Return to the editor, press and hold Ctrl, and adjust the font size using the mouse wheel.

Increase or decrease font size in all tabs Useful editor configurations

You can use the Editor section of the Settings dialog (Ctrl+Alt+S) to customize the editor's behavior.

Check the following popular configurations:

Configure code formatting
  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. From the list of languages, select the appropriate one, and configure settings for tabs and indents, spaces, wrapping and braces, hard and soft margins, and so on.

Configure color scheme settings for different languages and frameworks
  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. Open the Color Scheme node and select the necessary language or framework. You can also select the General option to configure the color scheme settings for general items, such as code, editor, errors and warnings, popups and hints, search results, and so on.

Configure code completion options Configure caret placement Configure the behavior of trailing spaces on save Configure the editor appearance options Manage the appearance of long lines
  1. In the Settings dialog (Ctrl+Alt+S) , go to .

  2. In the Soft Wraps section, specify the appropriate options.

Configure smart keys

You can configure the behavior of basic editor actions to differ depending on the language you use.

Last modified: 14 March 2025


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4