Eclipse remove name patterns in File search - eclipse

Where does Eclipse save the recent patterns in the "File name Patterns" by File Search. I want to delete some of these entries, but couldn't find them in any text/temp file.
Many thanks

Open the file <Your eclipse workspace>/.metadata/.plugins/org.eclipse.search/dialog_settings.xml
Check all the child nodes of <section name="EXTENSIONS"> tag and change the values and restart eclipse.

The search dialog settings are saved in a dialog_settings.xml file in the workspace .metadata/.plugins/org.eclipse.search directory.
The text search page uses the <section name="TextSearchPage"> part of this file.
Note: On Unix, Linux and Mac systems directories starting with . are hidden.

Related

Hide Files In VScode

I don't want to show the files in VScode which are already hidden i.e starts file name with '.'
in ubuntu filename start with '.' are hidden but whenever i open any folder in VScode that hidden files also showing.. so can some one tell me how can hide files in VScode which name starts with '.' ?
open vscode
go file-preferneces-settings-Text Editor-files
click add pattern bellow "Files:exclude"
Add what you want to be hidden in a .gitignore file local to your project.
In VSCode settings, look for: "Explorer: Exclude Git Ignore".
Tick the box.
In this way, you minimize the settings specific to your current IDE, and rely on what is specified in your project.

NetBeans doesn't show git ignore files

I can't see my project's .gitignore files within my netbeans program.
Is there a way to make them appear within the list of files? I could not find a way.
Open the NetBeans Options
Click on the 'Files' tab
Under 'Ignored Files Pattern', the default is:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$
This means that, by default, NetBeans ignores all files beginning with '.' except for .htaccess
You can update this regex to the following to also exclude .gitignore:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|gitignore)$).*$
Click OK, and NetBeans will immediately begin displaying your .gitignore files.

NetBeans - Display .gitignore Files in Projects/Files

By default, NetBeans does not show .gitignore files inside it's Projects/Files lists.
How do I get them to show up?
I'd like to see them, since NetBeans has no issue actually editing these files.
Open the NetBeans Options
Click on the 'Files' tab
Under 'Ignored Files Pattern', the default is:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$
This means that, by default, NetBeans ignores all files beginning with '.' except for .htaccess
You can update this regex to the following to also exclude .gitignore:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|gitignore)$).*$
Click OK, and NetBeans will immediately begin displaying your .gitignore files.

Viewing a modified file in eclipse

I was adding a simple file to one of my programs that updates when I run the program with a particular parameter.
The file updated fine, but it is stored in the /bin directory and I can't figure out how to view the file within the editor.
I can see that the file is updated when I traverse the bin folder manually and open it with notepad.
Is there a way to view the file within the editor?
edit: I have a file in the project already but I doesn't update, instead the copy in the bin folder does; Can I connect the two somehow?
Your <project>/bin directory is being filtered from view. Right click on your project, select Show In->Navigator then you should be able to see your /bin directory and double click your file to have it open in an editor.
Alternatively, you can use ctrl-shift-r to open the Open Resource dialog, from the triangle drop down menu check Show Derived Resources, and then type in the name of your file.
The /bin directory is managed by the Eclipse builders and so you may lose your file if you do a clean. I would suggest using a different directory to house your runtime files.

Using various Eclipse ini files

I am using a software client based on Eclipse (Ganymede) and its all working fine.
However, one small thing would make my world perfect...
In the Eclipse home folder, there is an ini-file. Is there a way to have various ini-files and choose (for example by arguments or environment variables) a specific ini file and create a shortcut for it?
Many thanks,
You can make as many shortcut you want with the:
the eclipse.exe executable
the option --launcher.ini /your/eclipse.ini
See Eclipse Help page on Runtime Options:
--launcher.ini <location> (Executable)
The location of the product .ini file to use.
If not specified the executable will look for a file beside the launcher with the same name and the extension .ini.
(ie eclipse.exe looks for eclipse.ini, product.exe looks for product.ini)
So you can have more than one "eclipse.ini" file: each one will be referenced as an argument within the --launcher.ini option.
The easy way would be to have a shell script (for *nix) or batch file for windows that would simulate the behaviour you want
#!/bin/ksh
echo "first arg is the name of the ini file to use otherwise using default one"
ln -s $1 eclipse.ini
#launch eclipse