是否有Eclipse线宽标记? [英] Is there an Eclipse line-width marker?

查看:195
本文介绍了是否有Eclipse线宽标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个特定的项目,我需要将每个代码行包含在65个字符。我已经正确设置了eclipse Java代码格式化程序。但是我真正想要的是在编辑器中绘制的垂直线,显示我在输入时的最大线宽度,而不仅仅是当我运行模板时。我知道这个功能在某种程度上是可用的,因为它显示在代码格式化程序属性页面中。



我没有看到任何选项在日食中打开它,我没有看到任何插件在Eclipse插件中心执行

解决方案

查看Windows /首选项(至少在Windows上 - IIRC它为不同的操作系统移动)然后:

 常规 - >编辑 - >文本编辑器 - >显示打印保证金

勾选此项,它应显示该行。



作为一种快速查找方式,请使用顶部的搜索过滤器,然后过滤margin。


I have a specific project where I need to wrap every code line at 65 characters. I have set up the eclipse Java code formatter properly for this. But what I really want is a vertical line to be drawn in the editor showing where the max line width while I am typing, not just when I run the formmater. I know this feature is available in some capacity because it is displayed in the code formatter property page.

I don't see any option in eclipse to turn this on and I didn't see any plug-ins that do it on Eclipse Plugin Central

解决方案

Look in Windows / Preferences (at least on Windows - IIRC it moves around for different operating systems) then:

General -> Editors -> Text Editors -> Show Print Margin

Tick this and it should show the line.

As a quick way of finding this, use the search filter in the top and filter on "margin".

这篇关于是否有Eclipse线宽标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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