Advanced Features 高级功能
Advanced Features 高级功能
Advanced Features 高级功能 Advanced Features 高级功能 Modified September 6, 2024 Advanced Features 高级功能 Tab in Peek 速览中的 Tab 键 You can also use Cursor Tab in the “Go to Definition” or “Go to Type Definition” peek views. This is useful, for example, when adding a new argument to a function call. 您还可以在 “Go to Definition” 或 “Go to Type Definition” 速览视图中使用 Cursor Tab。例如,在向函数调用添加新参数时,这非常有用。 We especially enjoy using this in vim in conjunction with gd to, for example, modify a function definition, then fix all of its usages in one go. 我们特别喜欢在 vim 中与 gd 结合使用,例如,修改函数定义,然后一次性修复其所有用法。 Cursor Prediction 光标预测 Cursor can also predict where you will go to after an accepted edit. If available, you will be able to press tab to go to the next location, allowing you to tab tab tab through edits. Cursor 还可以预测您在接受编辑后将转到何处。如果可用,您将能够按 Tab 键转到下一个位置,从而允许您通过 Tab Tab Tab 键进行编辑。 Cursor predicted the next location, and suggested an edit there. Cursor 预测了下一个位置,并建议在那里进行编辑。 Partial Accepts 部分接受 You can accept the next word of a suggestion by pressing Ctrl/⌘ and the right arrow (or by setting editor.action.inlineSuggest.acceptNextWord to your preferred keybinding). 您可以通过按 Ctrl/⌘ 和向右箭头(或设置为 editor.action.inlineSuggest.acceptNextWord 您喜欢的键绑定)来接受建议的下一个单词。 To enable partial accepts, navigate to Cursor Settings Features Cursor Tab. 要启用部分接受,请导航到光标选项卡光标设置功能。 Advanced Features 高级功能 Tab in Peek 速览中的 Tab 键 You can also use Cursor Tab in the “Go to Definition” or “Go to Type Definition” peek views. This is useful, for example, when adding a new argument to a function call. 您还可以在 “Go to Definition” 或 “Go to Type Definition” 速览视图中使用 Cursor Tab。例如,在向函数调用添加新参数时,这非常有用。 We especially enjoy using this in vim in conjunction with gd to, for example, modify a function definition, then fix all of its usages in one go. 我们特别喜欢在 vim 中与 gd 结合使用,例如,修改函数定义,然后一次性修复其所有用法。 Cursor Prediction 光标预测 Cursor can also predict where you will go to after an accepted edit. If available, you will be able to press tab to go to the next location, allowing you to tab tab tab through edits. Cursor 还可以预测您在接受编辑后将转到何处。如果可用,您将能够按 Tab 键转到下一个位置,从而允许您通过 Tab Tab Tab 键进行编辑。 Cursor predicted the next location, and suggested an edit there. Cursor 预测了下一个位置,并建议在那里进行编辑。 Partial Accepts 部分接受 You can accept the next word of a suggestion by pressing Ctrl/⌘ and the right arrow (or by setting editor.action.inlineSuggest.acceptNextWord to your preferred keybinding). 您可以通过按 Ctrl/⌘ 和向右箭头(或设置为 editor.action.inlineSuggest.acceptNextWord 您喜欢的键绑定)来接受建议的下一个单词。 To enable partial accepts, navigate to Cursor Settings Features Cursor Tab. 要启用部分接受,请导航到光标选项卡光标设置功能。