简体   繁体   English

单击一行代码时 Atom 编辑器滚动

[英]Atom Editor Scrolls When I Click On A Line of Code

recently when I have been using Atom Editor, when I click on a line of code the editor scrolls in so that the code that I clicked on is in the center of the window (if that makes sense).最近,当我一直在使用 Atom 编辑器时,当我单击一行代码时,编辑器会滚动进来,以便我单击的代码位于 window 的中心(如果这有意义的话)。 For example if I have 100 lines of code, if I click on the code in line 25, it will automatically put line 25 in the middle of my screen.例如,如果我有 100 行代码,如果我单击第 25 行的代码,它会自动将第 25 行放在屏幕中间。 I think the catalyst for it was when I opened up a second file and dragged it into a pane next to my other file, so that I was editing two files at once side by side.我认为它的催化剂是当我打开第二个文件并将其拖到另一个文件旁边的窗格中时,这样我就可以同时并排编辑两个文件。 It makes it hard to navigate through my code.这使得浏览我的代码变得困难。 Is there a way to fix this?有没有办法来解决这个问题?

Okay, I found the answer to my problem.好的,我找到了问题的答案。 I had downloaded a package named "Typewriter Scroll" that is supposed to emulate a typewriter.我下载了一个名为“Typewriter Scroll”的 package,它可以模拟打字机。 I disabled it and my code no longer scrolls when I click.我禁用了它,单击时我的代码不再滚动。

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

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