{"id":1520,"date":"2023-08-11T17:53:15","date_gmt":"2023-08-11T12:23:15","guid":{"rendered":"https:\/\/mutesoft.com\/spaces\/software\/?p=1520"},"modified":"2023-08-11T17:53:17","modified_gmt":"2023-08-11T12:23:17","slug":"how-to-change-editor-line-height-in-netbeans-ide","status":"publish","type":"post","link":"https:\/\/mutesoft.com\/spaces\/software\/how-to-change-editor-line-height-in-netbeans-ide.html","title":{"rendered":"How to Change Editor Line Height in NetBeans IDE?"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1120\" height=\"630\" src=\"https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE.jpg\" alt=\"\" class=\"wp-image-1524\" srcset=\"https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE.jpg 1120w, https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE-300x169.jpg 300w, https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE-1024x576.jpg 1024w, https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE-768x432.jpg 768w, https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE-500x281.jpg 500w, https:\/\/mutesoft.com\/spaces\/software\/wp-content\/uploads\/sites\/7\/2023\/08\/NetBeans-IDE-800x450.jpg 800w\" sizes=\"auto, (max-width: 1120px) 100vw, 1120px\" \/><\/figure>\n\n\n\n<p>Unlike IntelliJ Idea, the NetBeans IDE does not have a direct option in the settings window to set the preferred line height of the editor. If you want to adjust the editor line height in NetBeans, you can still do it by adding an entry to a preferences file.<\/p>\n\n\n\n<p>The file you have to modify is <code>org-netbeans-modules-editor-settings-CustomPreferences.xml<\/code>. Depending on your operating system and version, the location of the NetBeans <code>Preferences<\/code> folder may vary. Typically, the <code>Preferences<\/code> folder is located in the user&#8217;s home directory at <code>~\/.netbeans\/&lt;version>\/config\/Editors\/Preferences<\/code> (e.g. <code>~\/.netbeans\/18\/config\/Editors\/Preferences<\/code>).<\/p>\n\n\n\n<p>On MacOS Ventura (13.5) NetBeans (v18) preferences config is located at: <code>~\/Library\/Application Support\/NetBeans\/18\/config\/Editors\/Preferences<\/code>.<\/p>\n\n\n\n<p>Open <code>~\/Library\/Application Support\/NetBeans\/18\/config\/Editors\/Preferences\/org-netbeans-modules-editor-settings-CustomPreferences.xml<\/code> and add the following lines to specify the line height:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?>\n&lt;!DOCTYPE editor-preferences PUBLIC \"-\/\/NetBeans\/\/DTD Editor Preferences 1.0\/\/EN\" \"http:\/\/www.netbeans.org\/dtds\/EditorPreferences-1_0.dtd\">\n&lt;editor-preferences>\n  &lt;entry javaType=\"java.lang.Float\" name=\"line-height-correction\" xml:space=\"preserve\"> &lt;value>&lt;![CDATA[1.2]]>&lt;\/value> &lt;\/entry>\n&lt;\/editor-preferences><\/pre>\n\n\n\n<p>If the file <code>org-netbeans-modules-editor-settings-CustomPreferences.xml<\/code> already exists, just add the entry to the file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unlike IntelliJ Idea, the NetBeans IDE does not have a direct option in the settings window to set the preferred line height of the editor. If you want to adjust the editor line height in NetBeans, you can still do it by adding an entry to a preferences file.<\/p>\n","protected":false},"author":2,"featured_media":1524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_vp_format_video_url":"","_vp_image_focal_point":{"x":0.53,"y":0.44},"footnotes":""},"categories":[32],"tags":[25,68,36],"class_list":["post-1520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools","tag-ide","tag-netbeans","tag-tools"],"_links":{"self":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts\/1520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/comments?post=1520"}],"version-history":[{"count":2,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts\/1520\/revisions"}],"predecessor-version":[{"id":1525,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts\/1520\/revisions\/1525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/media\/1524"}],"wp:attachment":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/media?parent=1520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/categories?post=1520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/tags?post=1520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}