NetBeans doesn't show git ignore files - netbeans

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.

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.

Visual studio code, exclude directory from "go to file" option (ctrl + p)

I am using vscode, and I would like to exclude some directories (with webpack bundles) from 'go to file' option in vscode.
I tried to exclude them by "search.exclude" and "files.exclude". That worked in files tree and in search, but I still can find these files by 'go to file'.
Do you know how to do this?
As #adamesque stated, to exclude files from quick open you can either add them to files.exclude or search.exclude setting.
The issue then is that Quick Open also stores recent items, even from excluded paths.
Fortunately, VSCode now have a command File: Clear Recently Opened!
EDIT: As I needed to replace a Disk path while keeping my recent files I found where they are stored. It's in the storage.json file which is under /Users/imac/Library/Application Support/Code/storage.json on macOS and AppData\Roaming\Code\storage.json on Windows.
I thought I had this exact problem, and all the relevant issues I could find in the VS Code GitHub project seemed to have been fixed (see https://github.com/Microsoft/vscode/issues/19029, https://github.com/Microsoft/vscode/issues/6502).
In my case, because I had previously opened some of the files in those excluded directories, they still showed up in "Go To File" in the "Recently Opened" section, which made me think the exclusion feature wasn't working.
Turns out I just had to manually remove those items from history to keep them from showing up. Open the Command Palette, run Remove from History, and then select the a file to remove. You may need to do this for each file you'd previously opened from an "excluded" dir, but after this is done, they shouldn't show up anymore in the "Go to File" menu.
Hope this helps!
Version 1.44:
now we have an option in the settings.
If you tipe "Goto file" in the setting search bar, the editor opens up a Search:Exclude section, and you can add a folder or files.
CTRL + SHIFT + P, then select File: Clear Recently Opened

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.

Netbeans - exclude .svn directories from editor

I'm using NetBeans 6.9.1 and for some reason in the "Projects" view the .svn directories are showing up alongside the source code. How can I tell NetBeans to not show the .svn directories?
I believe it worked like this when I first installed NetBeans but somehow it's started showing the .svn directories (I likely mucked up a setting).
It is usually set up like this by default, but you must have changed it.
In the menu Tools / Options -> Miscellaneous -> Files you should have a "ignored by the IDE" pattern looking like
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!lib|htaccess$).*$
This is my setting, I have added the last htaccess part to show .htaccess files in the project window.
You can see the default pattern at http://ui.netbeans.org/docs/ui/file_types_UI_spec/

How do you make NetBeans ignore files when searching for files?

In NetBeans when you go to Navigate -> Go to File you can search for files by filename. Is there a way to instruct NetBeans to ignore some files. It's picking lots of files from a tmp directory in my project which I never intend to open and it's just noise.
You can also add folders to the "Files ignored by the IDE" configuration.
Select Tools|Options and add the folder names to the regex.
NB: I have not yet confirmed that this achieves what is described.
In NetBeans 7 you go to "Project Properties" then to "Ignored Folders" and you just add your folders there.
You can configure include/exclude file patterns on a project by project basis. This feature will allow you to add an exclude pattern for your 'tmp' directory, which will stop 'Go to File' suggesting files contained in this directory.
To configure bring up the project properties (File -> Project Properties), select sources, and click 'includes/excludes' button. I.e.:
In my version of Netbeans (6.9.1 on Win 7), there is no button under Project Properties -> Source in which to enter exclusion patterns.
You have to go to Tools -> Options -> Miscellaneous -> Files and add the necessary file names or extensions under "files ignored by the IDE" in the Ignored Files Pattern field regexp.
For ignoring an entire folder, it is (in my version) on the project properties screen, but not under Sources; instead look at the "Ignored Folders" category.