如何prevent机器人工作室自动完成去除相邻令牌 [英] How to prevent Android Studio autocomplete removing adjacent token

查看:157
本文介绍了如何prevent机器人工作室自动完成去除相邻令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我编辑的code在Android的工作室已有的线路,并接受自动完成,下面的标记光标右边被吃的:

If I'm editing an existing line of code in Android Studio, and accept an autocomplete, the following token to the right of the cursor gets eaten:

有没有一种方法来禁用此行为,既保持自动完成加行的其余部分?

Is there a way to disable this behaviour, keeping both the autocomplete plus the rest of the line?

推荐答案

如果您preSS回车它只是贴在自动完成,如果你preSS标签,它取代了它。我猜你总是pressing标签,所以尝试Enter键,看看你怎么样工作的。

If you press "Enter" it just pastes in the autocomplete, if you press "Tab" it replaces it. I would guess you are always pressing "Tab", so try "Enter" and see if you like how that works.

从JetBrains公司完整文档

这里的TLDR;

  1. 使用输入插入,在插入点选择的字符串。
  2. 使用标签以替换下一个与选择的一个尖号的字符串。
  3. 使用的按Ctrl + Shift + Enter ,以使目前的code构建语法正确(平衡括号,添加缺少的括号和分号等)
  1. Use Enter to insert the selected string at the insertion point.
  2. Use Tab to replace the string next to the caret with the selected one.
  3. Use Ctrl+Shift+Enter to make the current code construct syntactically correct (balance parentheses, add missing braces and semicolons, etc.)

这篇关于如何prevent机器人工作室自动完成去除相邻令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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