Files are read-only when opening from sftp remote explorer

See original GitHub issue

I’ve added an sftp connection with the option "downloadOnOpen": true, however when I open a file from the remote server, I cannot edit it due to vscode saying it’s read-only. The only way I can is to choose “Edit in Local” for each file. Is this the expected behavior? How can I simply open and edit the files?

If this designed this way, can there be an option added to auto open the files in edit mode?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

104reactions
keke122765commented, Jun 14, 2019

VScode > File > Preferences > Settings Select “downloadWhenOpenInRemoteExplorer” then restart vscode.

15reactions
liximomocommented, Aug 6, 2018

This is the expected behavior. “downloadOnOpen” only works for the local explorer.

can there be an option added to auto open the files in edit mode?

No such option right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot edit in read-only editor VS Code - Stack Overflow
Go to File > Preference > Settings then; type: run code and scroll down until you see code-runner: Run in terminal, There will...
Read more >
Files are read-only when opening from sftp remote explorer.
Files are read-only when opening from sftp remote explorer. ... Select “downloadWhenOpenInRemoteExplorer” then restart vscode. Categorias. Sem ...
Read more >
SFTP server in Windows with multiple users and read-only file ...
Blog post - https://nagasudhir.blogspot.com/2022/10/ sftp -server-in-windows-with-multiple.htmlSetup SFTP in windows using OpenSSH ...
Read more >
SFTP support for Azure Blob Storage - Microsoft Learn
Blob storage now supports the SSH File Transfer Protocol (SFTP). This support lets you securely connect to Blob Storage via an SFTP endpoint ......
Read more >
Install SFTP Extension for visual studio code - Tech Blog
Step 7: Go and click to open any of your file. But your file will open as read only mode. If you want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found