Remove quotes and braces in Android Studio in editor.

huangapple go评论68阅读模式
英文:

Remove quotes and braces in Android Studio in editor

问题

Is there a possibility to easily remove surrounding quotes, braces, etc from a certain text element in my Android Studio project?

More specifically without manually removing quotes and test and retyping?

For example:

eg 1 "with quotes" should become with quotes with minimal effort?

eg 2 {with braces} should become with braces with minimal effort?

>I can do it just only by selecting words inside quotes and deleting both words and quotes and then again retyping same words.

Please help me if there is a way in Android Studio

英文:

Is there a possibility to easily remove surrounding quotes, braces, etc from a certain text element in my Android Studio project?

More specifically without manually removing quotes and test and retyping?

For example:

eg 1 "with quotes" should become with quotes with minimal effort?

eg 2 {with braces} should become with braces with minimal effort?

>I can do it just only by selecting words inside quotes and deleting both words and quotes and then again retyping same words.

Please help me if there is a way in Android Studio

答案1

得分: 0

通过选择代码,然后使用“replaceAll”应该可以运行。

英文:

By selecting the code, and then using replaceAll should work.

答案2

得分: 0

没有明显的方法来做到这一点。

通常我会使用键盘快捷键来移动光标。

以下是一份完整的列表,来自维基百科。
键盘快捷键表 - 文本编辑

所以,要去掉引号,我会使用“行首”或“行尾”快捷键。

英文:

There doesn't appear to be a way to do this.

I typically make use of keyboard shortcuts to move the cursor.

Here is a complete list, from Wikipedia.
Table of keyboard shortcuts – Text editing.

So, to remove the quotes, I'd use the start-of-line or end-of-line shortcut.

huangapple
  • 本文由 发表于 2023年7月18日 15:27:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76710401.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定