Change Notepad++ Double Click Highlight Behavior

7

It seems like the double click function in NotePad++ currently highlights all text until it finds a space or non-alphanumeric character. If I double click on the 'F00D' portion of the following guid:

0BADC0DE-DEAD-B33F-F00D-C0FFEE00C0D3

It will select 'F00D'. Is there a way to have the double click functionality extend to the entire Guid? In essence, I want the double click to highlight in either direction until it finds a space. So in the previous example, a double click anywhere in the Guid would select the entire Guid.

I tried changing the Settings -> Preferences -> Delimiter setting to a blank space on either side, but no luck still.

Mathew Ruberg

Posted 2014-01-16T20:47:02.910

Reputation: 175

2If the GUID is on it's own on a line then triple click will highlight the whole thing – Shevek – 2014-01-16T21:19:06.963

Answers

4

Settings > Preferences > Delimiter > Add your character as part of word.

Please a hyphen '-' in this field and it will add the hyphen character as part of the word character set, and therefore highlight the entire GUID string as it accepts the hyphen as being treated as any other standard alphanumeric character.

I hope this makes sense.

Mocky232

Posted 2014-01-16T20:47:02.910

Reputation: 56

0

You can use the Begin/End Select function

Right-Click before the first character of the GUID, select Begin/End Select

Right-Click after the last character of the GUID, select Begin/End Select

This will select the entire GUID

It's a few extra clicks but gets the desired result

Shevek

Posted 2014-01-16T20:47:02.910

Reputation: 15 408

1I learned something from this and, though it is tedious, I don't believe it's enough for a downvote. I upvoted to counter. – jason – 2016-12-16T20:34:47.357

1This is even worse than left-click, hold and drag – Thomas Weller – 2014-01-16T21:23:14.223

I didn't say it was better or worse than any other method. – Shevek – 2014-01-16T21:26:46.577

0

When using the Settings -> Preferences -> Delimiter setting you need to Ctrl+Double Click

Set both Open and Close to a single space

Then Ctrl+Double Click on the GUID.

I have just tested this and it works, but only if there is a space + [text] before and after the GUID. This might be a bug in notepad++.

Shevek

Posted 2014-01-16T20:47:02.910

Reputation: 15 408

Unfortunately, this does not work for me. It still only selects the 'F00D' portion of the guid. – Mathew Ruberg – 2014-01-17T15:56:54.093

Works fine for me on 2 different computers. What version are you using? I have 6.5.2 – Shevek – 2014-01-18T16:40:34.030

Hmm, I also have 6.5.2.Just to make absolutely sure we're doing the same thing: I hold down ctl and then double left click the left mouse button? – Mathew Ruberg – 2014-01-19T00:30:09.810

I've done some further testing. This ONLY works if there's a space BOTH ends of the GUID:

word GUID - doesn't work (sometimes crashes Notepad++!) GUID word - doesn't work (sometimes crashes Notepad++!) word GUID word does work – Shevek – 2014-01-20T07:36:27.727

Yep, that's the same behavior that I have. This seems like a notepad++ bug. – Mathew Ruberg – 2014-01-20T16:39:17.527