@Unmarked0146 said in Reducing the size of the column next to the line number:
I don’t really want to remove the plugins; I want to reduce the size of the column.
Looks like you’ve really got 2 or more overlapping issues:
First, you started using Notepad++ years ago (which is great), but it means that your theme was out-of-date (I cannot tell for sure which theme, or if you’ve got a custom theme) – but it presumably didn’t have the Change Margin styles. When you upgraded to Notepad++ v8.8.9, a new feature in that version saw you were missing those styles, and populated them based on the stylers.model.xml values – which means it chose light-based colors for the margin, rather than the dark-based colors that your theme expects: that’s why the orange change-history marker shows up on a light gray background. (That feature is scheduled to be improved in v8.9.0, so that it won’t be so glaring when you update a dark theme from an older N++ into v8.9.0 or newer…) If you are using one of the built-in themes, you might try to compare your %AppData%\Notepad++\themes\___.xml with the version from c:\program files\Notepad++\themes\, and make sure that the colors from all the <WidgetStyle> entries match the one from the installation themes. If not, copy over those values, save your customized theme, and then restart Notepad++. That will help make it consistent again.
Second, I see you have the Location Navigate plugin. As a user recently discovered in the N++ Issues Tracker, that plugin has its own change-history column, and by default it enables Plugins > Location Navigate > Mark Changed Line, which adds its own column over there. If you uncheck that option, then restart Notepad++, it will get rid of its extra space.
on off e44a67e7-a8c1-4d7d-bcff-c5f8bfb7044d-image.png 9781756c-644b-4478-91bb-ec05c1f7d113-image.pngBut you have to make the change, then restart Notepad++, for that extra column to appear or disappear. But based on your screenshot, I think you might not actually have that option enabled on that plugin, beause I’m only seeing the Notepad++ native Change History margin there.
What gets me is that your screenshot implies that your theme____.xml was missing the “Bookmark margin” style as well as the “Change History margin” style. The latter, I understand, because it was only given an entry in v8.4.6 in 2022. But Bookmark margin was given a style in 7.9.1 in 2020… it’s surprising to me that you started that early with this current customized theme. (I understand using Notepad++ that long – I’ve been using it since ~2008 – but even my customized colors have been updated and reset, especially as I’ve gotten many new computers since then.) But both your margins being light gray imply that your theme was missing both those definitions when you ran 8.8.9 for the first time.
Anyway, your screenshot is really showing two different margins – the Bookmark margin and the Change History margin. In this screenshot, I set one to Bookmark to salmon and Change History to yellow, to make it obvious which was which.
2a688cfb-9fad-4270-a579-aa70f4c0b2d5-image.png
Notepad++ does not have a way to change the width of either of those natively (though with one of the scripting plugins, like PythonScript or NppExec, you can actually send the scintilla command to change those widths). But Notepad++ does allow you to enable/disable each of those margins:
So, if you never use the “Bookmark” feature of Notepad++ (either through clicking in that margin, using the Search > Bookmark > Toggle or similar, or using the Search > Mark dialog with Bookmark Line checkmarked), like in the following screenshot
7aabf9a2-a582-477c-be1e-2e5f218ca932-image.png
… if you never use that Bookmark round dot, then you could use Settings > Preferences > Margins/Border/Edge > Display nookmark (see #1 in screenshot) to toggle that border.
And if you never use the Change History, you can turn off … > Change History > Show in the margin on that same page of the preferences dialog (#2 in screenshot).
fd31a333-6fd4-464f-8a5e-60a9907f87f8-image.png
Turning off either of those will make your margin on the left smaller. But if all you want is for it to not stick out like a sore thumb, then
A. Go to Settings > Style Configurator > Language: Global Styles, and set Style: Bookmark margin’s background to 51,51,51 and Style: Change History margin background to the same.
Update: See our Change History Margin FAQ, especially the “How do I change the size” section, for an example of how to change the size using PythonScript or NppExec. (But yikes, I see that FAQ is out of date, since it doesn’t show the ability to change the four colors, which was added years ago… I will have to fix that next)