Html 如何跳转到 Sublime Text 3 中的上一个和最后一个光标?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19996878/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to jump to previous and last cursor in Sublime Text 3?
提问by cruelcage
How to jump back and forward through the cursor position history in Sublime Text?
如何在 Sublime Text 中的光标位置历史中来回跳转?
I google a lot and find BufferScroll. But it doesn't work for me. I can't find any shortcut or how to use it in the document.
我谷歌了很多,找到了BufferScroll。但这对我不起作用。我在文档中找不到任何快捷方式或如何使用它。
Update:
更新:
Every time I try to use Jump Forward (SHIFT+ALT+-), my editor always says "Already at the newest position" while actually not in the newest position. Jump Back (ALT+-) works well.
每次我尝试使用 Jump Forward ( SHIFT+ ALT+ -) 时,我的编辑器总是说“已经在最新位置”,而实际上不在最新位置。跳回 ( ALT+ -) 效果很好。
回答by Jeremy Halliwell
If you mean jumping back and forward through the cursor position history, then in Sublime Text 3 it's built invia the GoTo menu or keyboard shortcuts:
如果您的意思是在光标位置历史记录中前后跳转,那么在 Sublime Text 3 中,它是通过 GoTo 菜单或键盘快捷键内置的:
Jump Back and Jump Forward – Jump Back allows you to go to previous editing positions. This goes hand in hand with Goto Definition: you can now inspect a symbol definition, and quickly jump back to where you were previously. Jump Back is bound to Alt+Minusby default. The menu entry is Goto > Jump Back
向后跳转和向前跳转 - 向后跳转允许您转到以前的编辑位置。这与 Goto Definition 相辅相成:您现在可以检查符号定义,并快速跳回到之前的位置。默认情况下,Jump Back 绑定到Alt+Minus。菜单项是 Goto > Jump Back
There are plugins available for ST2, for example navigationHistory.
有适用于 ST2 的插件,例如navigationHistory。