我正在写一些文档和代码解释。我想从 Eclipse 复制代码(包括行号),以便更容易在文本中引用代码。
有什么方法可以在 eclipse 或其他 IDE、编辑器中执行此操作吗?
最佳答案
自 Eclipse 3.4 and bug 19602 ,如果您在 Eclipse 编辑器上激活了行号,您将打印行号。
alt text http://img706.imageshack.us/img706/7605/eclipseshowlines.png
打印源代码将为您提供:
alt text http://img341.imageshack.us/img341/9899/eclipseprint.png
关于eclipse - 有没有办法从 eclipse 复制代码,包括 ine 数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2873201/