//更改代码行距
打开C:\Users\{yourname}\AppData\Roaming\NetBeans\7.3.1\config\Editors\Preferences,用文本编辑器打开
org-netbeans-modules-editor-settings-CustomPreferences.xml 文件,修改为如下:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE editor-preferences PUBLIC "-//NetBeans//DTD Editor Preferences 1.0//EN" "http://www.netbeans.org/dtds/EditorPreferences-1_0.dtd"> <editor-preferences> <entry javaType="java.lang.Boolean" name="enable.breadcrumbs" xml:space="preserve"> <value><![CDATA[true]]></value> </entry> <entry javaType="java.lang.Boolean" name="non-printable-characters-visible" xml:space="preserve"> <value><![CDATA[false]]></value> </entry> <!-- add --> <entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve"> <value><![CDATA[0.80]]></value> </entry> <!--add--> </editor-preferences>
重启IDE,可以看到行距变紧凑了。
时间: 2024-11-05 12:26:28