VSCode Source Control showing some random files that have not been changed - visual-studio-code

My VSCode is showing much more files in "Changes" then the actual files that are changed.
Most of them are some static files, scripts... And when I click to see what actually changed, there's no difference. How can I turn off showing such files?

You can add a '.gitignore' file which have contents like :
######################
# Package Files
######################
*.jar
*.war
*.ear
*.db

Related

How to open vscode on a large directory of files

I have a project that has hundreds of .c .h and .cpp files. I'd like to start using vscode with this project; however, I need to be able to tell vscode what files to actually include in the project (because depending on the build, many files are not included). Is there a way to force a file list into vscode without using the GUI/Add-File mechanism?

Plant UML in Visual Studio Code // Config file

I'm using Plant UML in VS-Code to generate diagrams: https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
I want to edit the global default extension setting:
Set input folder for the .puml files and ...
the output folder for the generated .png files
Question: I can't find the config file with the Export Settings for PlantUML in VS Code. Where could I find it, or how shall it be set up correctly to work with the IDE?
You could create a directory .vscode in the root directory of your project and put a file called 'settings.json' with these settings
{
"plantuml.commandArgs": [],
"plantuml.diagramsRoot": "../docs/diagrams/src",
"plantuml.exportOutDir": "../docs/diagrams/out"
}
See:
https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
Go to the section called "Include Files Search Logic"
On vscode
Go to File --> Preferences --> Settings
Search for plantuml and you will be presented by screen below
Change export format
Set output folder, default is out
uncheck the box if you don't want subfolder created, check if you want subfolder
Test

Flutter compile modifying too many files

After a simple debug, so many files are modified.
This is the print before debug:
This is the print after debug:
It happens in both platforms (iOS and Android).
The build folder is refreshed everytime you compile your app so all the changes that happen within it are shown here.
You can add a .gitignore to your build folder so these files won't be included in git. You generally don't need to back up/commit this folder as it will be created/refreshed every time you compile the app.
You can either add the whole folder to the main gitignore file or just use the command $ touch .gitignore inside your build folder with * as the content of the file.
If you're using VSCode I would recommend the GitLens extension which let's you (among other things) directly ignore a folder within VSCode.

Cannot ignore class ans wsdl files in SourceTree

I have bunch of .class and .wsdl files which simple are not ignored by SourceTree - ignore command in the drop down menu is not active
My .gitignore file looks like
#
# Default excludes
#
# Binaries
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.war
*.ear
*.sar
*.class
# Maven
target/
# IntelliJ project files
*.iml
*.iws
*.ipr
.idea/
# Unknown
**/jaxws/*
**/wsdl/*
Any clue what is going on?
Some time has passed since you asked this question, but looking at the color of the icon on the left of your files, it looks like you have already tracked those files, therefore you can't ignore them.
First you need to choose the option Stop Tracking bellow Ignore and after that you will be able to select those files and ignore them.

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.