liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 260 forks source link

Locally store sftp.json file. #723

Open michaelt05 opened 4 years ago

michaelt05 commented 4 years ago

Is this a similar or duplicate feature request?

Is your feature request related to a problem? Please describe. I notice that file sftp.json is stored in a .vscode folder and it is eventually being pushed to github. This sftp.json file contains server password. That is no good. Need to store this file local only.

Describe the solution you'd like Store it locally

Describe alternatives you've considered Could be looking for alternative extension

Does this project help you?

BlackBird009 commented 4 years ago

You can use a special folder outside your project folder as the first folder of your workspace main folder. Then you can add your project folder to that workspace and any other folder you want to work with. The .vscode are only created inside your special folder.

I also use Workspace Explorer Extension together with this idea. I organise them like this:

VSCodeWorkSpace
├───Storage
├───Local
│   └───proj1
├───Remote
│   ├───proj2
│   │   ├───.vscode

VSCodeWorkSpace folder is used to store all these things and is outside any project folders.

Storage folder is used to keep workspace files for Workspace Explorer. proj1, proj2 are special folders for project 1 and project2.

Thus your actual project folder won't be affected in anyway.

plueschpruem commented 4 years ago

Or use "ignore": [".vscode", ".git", ".DS_Store"**, ".sftp"**] as it says in the readme