在Eclipse中,如何用新行代替字符? [英] In Eclipse, how do I replace a character by a new line?

查看:171
本文介绍了在Eclipse中,如何用新行代替字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse 3.3.2中,我想用文本中的新行替换一个字符(比如',')。
为了这样做,我应该在替换为框中写什么?

In Eclipse 3.3.2, I would like to replace a character (say ',') by a new line in a file. What should I write in the "Replace with" box in order to do so ?

编辑:很多答案似乎适用于Eclipse 3.4。有没有一个Eclipse 3.3.X的解决方案?

EDIT : Many answers seems to be for Eclipse 3.4. Is there a solution for Eclipse 3.3.X ?

推荐答案

复选框正则表达式,并使用\R '替换为'框

Check box 'Regular Expressions' and use '\R' in the 'Replace with' box

这是Eclipse 3.4引入的一个新功能,请参阅 3.4中的新功能

It's a new feature introduced with Eclipse 3.4, See What's New in 3.4

这篇关于在Eclipse中,如何用新行代替字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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