有什么办法来产生" Lorem存有"在Eclipse? [英] Is there any way to generate "Lorem ipsum" in eclipse?
问题描述
我是为寻找一种方式创造只是虚拟的文本视图时产生 Lorem存有
在eclipse。例如,在Visual Studio中你可以简单地通过键入做 LOREM
和preSS标签。结果
有没有做,在日食?任何想法?
I'm into finding a way to generate Lorem ipsum
in eclipse when creating views just for dummy texts. for example in Visual studio you can do it simply by typing lorem
and press tab.
Is there any to do that in eclipse? any Idea?
推荐答案
我还没有遇到一个Eclipse功能实际生成的虚拟文本,,但我强烈推荐这种解决方法(说实话,我不认为你需要每一次不同的虚拟文本)。
I haven't encountered an Eclipse functionality to actually generate dummy text, but I do highly recommend this workaround (truth be told, I don't think you need different dummy text each time).
创建Eclipe模板。它看起来像这样的 XML
文件:
Create an Eclipe template. It's an xml
file that looks like this:
<templates>
<template autoinsert="true" context="java" deleted="false" description="Dummy text" enabled="true" name="Lorem Ipsum">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</template>
</templates>
到爪哇 - >编辑 - >模板并导入上述文件
现在,当你写code和键入绝杀
(其中重presents在名称属性在模板标签上方),并创下<大骨节病> CTRL 骨节病> + <大骨节病> SPACE 骨节病>,然后它会自动插入Lorem存有文本。
Now, when you write code and type lore
(which represents the name attribute value of the template tag above), and hit CTRL+SPACE, then it will automatically insert the lorem ipsum text.
更多提示:
+
标志对ispum文本,因此,它打破了一长串插入时假
。然后,你可以看到在提案中存有描述 aaa_LoremIpsum
的名称。然后,在Eclipse中,键入 AAA
和preSS <大骨节病> CTRL 骨节病> + <大骨节病> SPACE 骨节病>。这样,你可以添加具有 AAA
开始许多模板,并在Eclipse中任何你喜欢的选择。
+
signs to the ispum text, so that it breaks down the long string when inserted
false
. Then you can see the ipsum description in the proposal
aaa_LoremIpsum
. Then, in Eclipse, type aaa
and press CTRL+SPACE. That way you can add many templates beginning with aaa
, and select in Eclipse whichever you like.
我自己有一类分离方法的模板。 (例如: aaa_1.StaticFields
, aaa_2.InstanceFields
, aaa_3.Constructors
等)
I myself have templates for separating methods in a class. (e.g. aaa_1.StaticFields
, aaa_2.InstanceFields
, aaa_3.Constructors
etc.)
这篇关于有什么办法来产生&QUOT; Lorem存有&QUOT;在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!