WebStorm 2021.2 Help

Touch bar support触摸栏支持

The Touch Bar is located above the keyboard on supported Apple MacBook Pro models. 在受支持的Apple MacBook Pro机型上,触摸栏位于键盘上方。It provides additional controls for quick access based on the current context.它提供了基于当前上下文的快速访问的附加控件。

The Touch Bar

The Control Strip in the right part of the Touch Bar includes controls for system-level tasks that are usually accessed with function keys on classic keyboards. 触摸栏右侧的“控制条”包括系统级任务的控制,这些任务通常通过经典键盘上的功能键访问。The app region to the left of the Control Strip contains controls that are specific to WebStorm and the current context. 控制条左侧的应用程序区域包含特定于WebStorm和当前上下文的控件。One more system button is located in the left part of the Touch Bar; this is usually the Escape key, but it can be something else depending on the context.一个以上的系统按钮位于触摸栏的左侧;这通常是转义键,但也可以是其他键,具体取决于上下文。

WebStorm provides the following contexts:WebStorm提供以下上下文:

  • Default context is used most of the time.大多数情况下使用默认上下文

    It includes controls for running, building, and debugging the application with the ability to quickly select or create a new run/debug configuration. 它包括用于运行、构建和调试应用程序的控件,能够快速选择或创建新的运行/调试配置It also provides VCS controls for updating your project and committing changes, which can be replaced in some contexts.它还提供用于更新项目和提交更改的VCS控件,这些更改在某些上下文中可以替换。

    For more controls, you can use modifier keys: Ctrl, Alt, Shift, and ⌥+⌘.对于更多控件,可以使用修饰键:CtrlAltShift⌥+⌘

  • Debugger context is used when focus is on the Debug tool window.当焦点位于调试”工具窗口上时,将使用调试器上下文

    It includes controls to stop, pause, resume the debugger, as well as stepping and evaluating expressions.

    The Touch Bar in debugger context

    For more controls, hold down the Alt key.

  • When focus is on a dialog, confirmation controls are displayed (for example, Cancel, Apply, OK, or other relevant buttons).

    The Touch Bar with dialog confirmation buttons
  • When you start typing inside a popup with a list of actions, the actions are filtered according to what you type (for example, in the Project tool window, when you press Alt+Insert, you can filter the types of files you would like to create). When the popup is active, the touch bar contains the same list of items, and it is filtered accordingly as you type.

    The Touch Bar with filtered popup items

Customize the Touch Bar

You can configure the controls displayed on the Touch Bar in the default and debugger context.

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Appearance & Behavior | Menus and Toolbars.

  2. Expand the Touch Bar node and configure the controls for corresponding contexts and modifier keys.

  3. Apply changes when finished.

To show the function keys (F1, F2, and so on) on the Touch Bar, hold down the Fn key. You can also make function keys display permanently for selected applications, as described in the following Apple support article.

WebStorm provides an option to always show function keys without the need to change system settings:

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Keymap.

  2. Select Show F1, F2, etc. keys on the Touch Bar at the bottom.

Last modified: 08 March 2021