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.
Related
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.
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
So I'm working on my first website in Eclipse. It is very simple only shows some text and an input box currently that does nothing, all this eclipse stuff is in my project folder. I've set it up to use Apache Tomcat 9 which is also in my project folder.
Now I think that I shouldn't just push my top level project folder as if I do this, everytime I open up the project in Eclipse, Sourcetree will show 50 or so files modified (.metadata files and such), so I'm guessing that I shouldn't have pushed these to start with.
I've since reset all my commits and am now wondering which files are necessary to upload to github?
You should add all source files to git: the actual code that runs your site (PHP, JavaScript, HTML, whatever it is), along with things like CSS. Don't include config files or files auto generated by the IDE (Eclipse in your case). You can use a .gitignore file to tell git not to pay attention to certain files, types of files, or directories. A guide to .gitignore files can be found here.
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.
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/