简体   繁体   English

在 Intellij Idea 中滚动选项卡时如何使其更快?

[英]How to make it faster when scrolling though tab in Intellij Idea?

It is quite to scroll through tabs in Idea.在 Idea 中滚动浏览选项卡是相当不错的。 I am happy about the speed it scroll through files, but for tabs it is too slow.我对它在文件中滚动的速度感到满意,但对于标签来说它太慢了。 在此处输入图像描述

Is there a way to keep the general scroll speed but make it faster only when scrolling through tabs?有没有办法保持一般的滚动速度,但只有在滚动标签时才能加快速度?

I am aware that there are hotkeys to switch tabs quickly, but still need to know.我知道有快速切换标签的热键,但仍然需要知道。

Indeed in the current build 2020.3.1 tabs scrolling is very slow.事实上,在当前版本 2020.3.1 中,标签的滚动速度非常慢。 There is a bug for it, and apparently, JetBrains already fixed it.它有一个错误,显然,JetBrains 已经修复了它。 Here are official comments from a developer :以下是来自开发者的官方评论:

These three problems were fixed:解决了这三个问题:

  1. For slow mouse wheel rotation we should use "rough" integer metrics event.getUnitsToScroll() instead of "precise" double metrics event.getPreciseWheelRotation().对于慢速鼠标滚轮旋转,我们应该使用“粗糙”integer 指标 event.getUnitsToScroll() 而不是“精确”双指标 event.getPreciseWheelRotation()。 Actually is means 1 instead of 0.1 in my environment (MacBook)实际上是在我的环境中表示 1 而不是 0.1 (MacBook)
  2. In MacBooks trackpad can suddenly send a single scroll event in opposite direction and looks like "trembling", these sudden events should be ignored在 MacBooks 的触控板中可以突然发送一个相反方向的滚动事件并且看起来像“颤抖”,这些突发事件应该被忽略
  3. Unit increment for horizontal scrolling can be tuned now with registry key ide.editor.tabs.scroll.unit.increment (default value is 10)现在可以使用注册表项 ide.editor.tabs.scroll.unit.increment 调整水平滚动的单位增量(默认值为 10)

See here for the relevant changes.请参阅此处了解相关更改。

As for versions of IntelliJ:至于 IntelliJ 的版本:

  1. 2020.3.1 the bug exists and you can do nothing about it, is suppose, without altering the speed of scrolling in the main window. 2020.3.1 存在错误,您对此无能为力,假设不改变主 window 中的滚动速度。
  2. 2021.1 the bug was fixed. 2021.1 该错误已修复。 Currently (23.01.2020), you can't download it, but I think it will be available soon as EAP Build.目前(23.01.2020),你不能下载它,但我认为它很快就会作为 EAP Build 提供。 Please, see here . 请看这里
  3. If you want it right now, you can download the source code and build it manually from the git repo .如果您现在需要它,您可以从git 存储库下载源代码并手动构建它。 The build instructions are simple.构建说明很简单。 I tested it, and indeed, the scrolling is much faster now:)我测试了它,确实,现在滚动速度更快了:)

Additionally, after the availability of 2021.1 build, you can modify the speed of tab scrolling by changing the registry value ide.editor.tabs.scroll.unit.increment此外,在 2021.1 版本可用后,您可以通过更改注册表ide.editor.tabs.scroll.unit.increment来修改选项卡滚动的速度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM