android studio/intellij 想法转到行号 [英] android studio / intellij idea goto line number

查看:42
本文介绍了android studio/intellij 想法转到行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Eclipse 中,如果我输入 cmd+L,它会打开一个对话框让我输入行号,然后它会将我带到代码中.我如何在 Android Studio 中做同样的事情?每次需要特定行号时都不必滚动.

解决方案

转到特定行和/或列号的快捷方式是:CTRLG

示例:

  1. 转到第 6 行
    CtrlG6回车

  2. 转到第 6 行和第 8 列
    CtrlG6:8回车

  3. 转到当前行的第 4 列
    CtrlG:4回车


快捷方式参考:

In Eclipse, if I type cmd+L, it opens a dialog for me to enter a line number and it takes me there in the code. How do I do the same thing in Android Studio? Instead of having to scroll each time I need a specific line number.

解决方案

The shortcut to go to a specific line and/or column number is: CTRLG

Examples:

  1. Go to line 6
    CtrlG6Enter

  2. Go to line 6 and column 8
    CtrlG6:8Enter

  3. Go to column 4 on the current line
    CtrlG:4Enter


Shortcut References:

这篇关于android studio/intellij 想法转到行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆