Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear all the entries in the Find listbox?

Tags:

notepad++

I want to clear all the search strings I entered in the Find dialog. How to achieve that?

like image 946
pheromix Avatar asked Nov 18 '11 08:11

pheromix


People also ask

How do you delete all items in a ListBox?

If we want to clear the items in the Listbox widget, we can use the delete(0, END) method. Besides deleting all the items in the Listbox, we can delete a single item as well by selecting an item from the Listbox, i.e., by using currselection() method to select an item and delete it using the delete() function.

How do I clear a ListBox in powershell?

For clearing the listbox you are right in using listbox. Item. Clear() .

How do I clear a ListBox in Visual Studio?

All information about the removed item is deleted. You can use this method to remove a specific item from the list by specifying the index of the item to remove from the list. To specify the item to remove instead of the index to the item, use the Remove method. To remove all items from the list, use the Clear method.

How do I clear a ListBox in Winforms?

BindingSource bindingSource = (BindingSource)listBox1. DataSource; IList SourceList = (IList)bindingSource. List; SourceList. Clear();


2 Answers

ajibanda++ has the answer:

  1. First, locate the application data folder of notepad++. This should be located at:

    • for XP C:\Documents and Settings\[REPLACE_WITH_USER]\Application Data\Notepad++
    • For Vista or Win7 it should be somewhere on: C:\Users\[REPLACE_WITH_USER]\AppData\Roaming\Notepad++

    NOTE: This is a hidden folder so it is advisable to make the hidden folders viewable.

  2. Locate and open config.xml to notepad for editing. Take note use notepad not notepad++, for some reason, editing it on notepad++ doesn't save the updates you'll be doing.

  3. Delete the lines with tags:

    • to remove, "search" history: <Find name="[REPLACE_WORD]".../>
    • to remove "replace" history : <Replace name="[REPLACE_WORD]" ..../>
  4. Save config.xml. If Notepad++ is open, close and then re-open it again.

like image 167
StKiller Avatar answered Sep 24 '22 12:09

StKiller


The easy way: Fill the search history with 10 new entries (e.g. 1, 2, 3, ..., 9, 0), then restart Notepad++ and the older entries are gone.

This is also very quick, because you just need to press Enter after each digit to execute these 10 searches.

like image 34
msa Avatar answered Sep 23 '22 12:09

msa