Select intellij 中的当前行
Select current line in intellij
有什么方法可以 select IntelliJ 15 中插入符处的整行?我知道您可以 select 当前单词 (ctl + w),转到第 beginning/end 行,但我找不到当前行 selection 特征。
- 将插入符号移动到行
- 在 Windows 上,按 ctrl+shift+a。
出现此弹出窗口,您可以在其中找到
Select Line at Caret
- 为了快速访问,您可以在
Settings
中指定快捷方式
只需按 ctrl+c。
请注意,对于 select 整行,您需要确保没有任何内容已经 selected;否则它将像通常的 "copy" 命令一样工作。
我还想从 JetBrains 网站添加以下内容。因为,那是我在这里寻找的,但没有人提到它。
1- To select text from the current caret position to the beginning/end of
the current word:
Ctrl+Shift+Left, Ctrl+Shift+Right.
2- To select text from the caret
position to the beginning/end of the current line:
Double-click Ctrl and press Home/End
3- To select text from the current
caret position to the top/bottom of the screen:
Ctrl+Shift+Page Up, Ctrl+Shift+Page Down.
如果上述 none 有效,我建议结合使用 end 和 home 键与 shift 允许您快速 select 行。
转到行尾并按 Ctrl+W。如果您在行首按 Ctrl+W,它只会 select 一个词。
不是键盘功能,但很好用:
到select整行只需点击代码左侧的行号。
除此之外,您还可以单击并拖动 selection。
此外,您可以双击方法的第一行的编号,结果 select 整个方法的离子。
有什么方法可以 select IntelliJ 15 中插入符处的整行?我知道您可以 select 当前单词 (ctl + w),转到第 beginning/end 行,但我找不到当前行 selection 特征。
- 将插入符号移动到行
- 在 Windows 上,按 ctrl+shift+a。
出现此弹出窗口,您可以在其中找到
Select Line at Caret
- 为了快速访问,您可以在
Settings
中指定快捷方式
只需按 ctrl+c。
请注意,对于 select 整行,您需要确保没有任何内容已经 selected;否则它将像通常的 "copy" 命令一样工作。
我还想从 JetBrains 网站添加以下内容。因为,那是我在这里寻找的,但没有人提到它。
1- To select text from the current caret position to the beginning/end of the current word:
Ctrl+Shift+Left, Ctrl+Shift+Right.
2- To select text from the caret position to the beginning/end of the current line:
Double-click Ctrl and press Home/End
3- To select text from the current caret position to the top/bottom of the screen:
Ctrl+Shift+Page Up, Ctrl+Shift+Page Down.
如果上述 none 有效,我建议结合使用 end 和 home 键与 shift 允许您快速 select 行。
转到行尾并按 Ctrl+W。如果您在行首按 Ctrl+W,它只会 select 一个词。
不是键盘功能,但很好用: 到select整行只需点击代码左侧的行号。
除此之外,您还可以单击并拖动 selection。
此外,您可以双击方法的第一行的编号,结果 select 整个方法的离子。