Is there a way to copy code from eclipse including ine numbers

前端 未结 3 2090
情歌与酒
情歌与酒 2021-01-18 10:11

I am writing a little bit of documentation and code explanation. I would like to copy code from eclipse including line numbers, so that it becomes easier to reference the co

3条回答
  •  萌比男神i
    2021-01-18 10:27

    Since Eclipse 3.4 and bug 19602, you will print the line numbers if you have activated them on the Eclipse editor.

    alt text http://img706.imageshack.us/img706/7605/eclipseshowlines.png

    Printing a source will give you:

    alt text http://img341.imageshack.us/img341/9899/eclipseprint.png

提交回复
热议问题