Different color for each project in a workspace - visual-studio-code

I have two projects in a workspace.
In each project I have some files that are named the same.
I sometimes edit one instead of the other.
Is it possible to distinguish the files depending on the project they are in - like having a color for each project?

I use toolbar colors. For example, a solution with client and server sub-projects has different setting files to get green toolbar for one project and blue one for another. This really helps me. Setting files: file1, file2.

Related

VSCode: open files related to a given project on a specific editor side

I am working on a vscode workspace, and in this workspace I have two separate projects that I need to constantly open files from one or the other. The explorer window on the left shows both projects, and were added using the Add folder to workspace... option if it's useful to know.
Now, since the projects have similar structure (both have an api.py file for example), I started keeping the open files from project1 on the left side of the editor, and I'm using the right side for project2. When I open a new file, it gets placed on the side of the screen that I have currently focused.
What I would like, is to know if there's an option to force files from project1 to stay on the left, and files from project2 to stay on the right.
The image below shows what I am trying to accomplish
This issue appears to be exactly on point:
Open files from folders in a fixed editor group.
Unfortunately, it was put on the backlog candidate list and didn't get the necessary votes and so was closed. So no built-in way to do this. Might be a good extension candidate.

How to change the eclipse window colour based on the workspace?

If I'm working on live branch as well as development branch at almost same time,
naturally the code in both the branches is similar,
my two eclipse instances are open at the same time,
I keep swapping between them and tend to commit mistake by adding code in the wrong workspace.
To distinguish between the two instances of eclipse if I could have different themes (colours), it could have been good fool proofing measure.
I would like different theme for the eclipse window than the code font or file background.
I use same eclipse (Helios) .exe for different workspaces.
Any simpler advice could also be helpful.
Thanks in advance.
You can also add a name for each workspace. Open Preferences>General>Workspace and enter a Workspace name. It will be shown at the beginning of the title in the shell and the task bar.
That's how I differentiate my 4.2 and 3.8 workspaces, since I often need them both open to compare behaviour.
You may right mouse click in the background of one of your files > Preferences > Text Editor and change background color.

Eclipse - different folder-/file colors per project

I'm looking for a way to optically mark different projects in the eclipse "Project Explorer".
From time to time I have to work with several opened projects, to copy files and folders from old to new projects. (I know it is possible to compare folders.. but it is not always the best way)
So it would be really convenient to apply a different color for the main project. E.g. having displayed the folders of that project in green instead of yellow - so this would avoid copy-pasting in the wrong 'direction'.
Any ideas? Or other tips?
Edit:
Added image
Eclipse isnt exploded make-up-bag :D
If you have your projects unter Version-Controll, you can specify custom file/folder/project-decorators with markant Text-Labels.
Therefore see Window->Preferences->Team->...->Label Decoration

How to exclude files/folder from Markers view in eclipse?

Is there a way in eclipse to stop markers from showing in the Markers view for files in a certain folder? I.e. I imported a Javascript library that I didn't write myself but it is going to be part of my project and I don't want to have to look at all the "TODO" and "FIXME" markers in those files and would just want to see my markers only... Is there a way to exclude certain folders or files form being scanned by the markers process?
Apparently, I was able to resolve this by adding the folders I wanted to exclude to the exclusion list under Project->Properties->Validation. (Click settings beside each validation, Add Exclude Group button, Add Rule button, select folder option, browse for relative folder)
You can configure the content of the Markers view (the one displaying errors and warning in source code) and the content of the Tasks view (the one displaying "TODO" and "FIXME") by clicking on the "small down arrow" in the top right of the view (near the minimize and maximize buttons) and then clicking on Configure Contents ... entry.
Hope this can help,
Manu
By selecting Configure Contents like Manu said, there is also the option to list the tasks for a specific working set, using the Scope area at the right.
That worked for me, and I'm not annoyed anymore by all Zend Framework #todo.
Hope this helped, Stéphane
I'm doing a node app and wanted to exclude my node modules folder. I found the only way to do this is to create a working set that excludes that directory and set the Task -> configure contents to that working set.
How to exclude a folder that is producing warnings/errors in an Eclipse project?

In intelliJ/Eclipse is there away to never open files from bin or target or build? or warn?

I just lost another 20 minutes because my IDE (sometimes I use IntelliJ, sometimes I use Eclipse) opened a file that was from the "bin, target, or build" folder... and I mistakenly thought it was from the src folder.
As I developer I almost always want the source code to look at, not build output artifacts... is there away to make the IDE either not present these as choices, or have it warn me visually that the file is not source (like surrounding the editor in a thick band of zebra stripped yellow and black lines? )
In IDEA output folders are excluded by default and are not visible in the Project View. Navigation to files from excluded folders also will not work. Double check that these folders are marked as Excluded in the Project Structure | Sources tab.
In Eclipse I use package explorer to navigate between source files, jsp, etc. It does not show any build/target/bin folders and there possibility to configure filters for it (Small down faced arrow next to titlebar)