When I make a change to a file in the project folder, the 'SOURCE CONTROL: GIT' panel is missing changes section.Because of that I am not able to see modified file .
Please check below image of how my vscode is looking(changes section is mising here)
Related
I've got a Swift Package I've created that has a .gitignore file and a .swiftlint.yml config file in it. They are in the repo. They are in the directory. I can drag and drop them into Xcode, but they don't appear in Xcode.
If I do command-shift-. in the "Add Files to MyPackage..." dialog box, I can see the hidden files and add them. However, I can't actually see them in the Project Navigator to edit the files. Right now I have to leave Xcode to edit those config files.
How do I show hidden files in Xcode Project Navigator?
open your terminal
defaults write com.apple.finder AppleShowAllFiles YES
cd ../PATH_TO_GIT_ROOT
touch .gitignore
Then relaunched Finder and my .gitignore file was visible. Edit per .gitignore documentation
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'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
I created a git folder in the windows power shell using the code: git init,
but I can't see the folder where I created it.
If git folders are hidden then how can I access them and make them visible because I want them to show up in Visual Studio Code?
You need to make hidden folder visible.
In windows:
Open File Explorer from the taskbar.
Select View > Options > Change folder and search options.
Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.
View hidden files and folders Windows 10
In Visual Studio Code.
Menu Code → Preference → Setting
Search for files.exclude
Mouse over files.exclude property, click on the edit icon and then opt for the copy to settings.
The above steps will add all the properties, but keep only those which need to be overridden. For this case: it should be, "files.exclude": { "**/.git": false }
Close the user
setting. the .git folder will automatically appear in the respective
repository.
Visual Studio Code: .git folder/file hidden
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