英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论