I have a problem opening my file from winSCP using Vscode editor. It display deleted even though the file is still existing. I notice that when there is deleted in filename my pc is creating temp folder when I save it and the deleted file will save there and not in the server.
I try to open the file using double click and it display delete but when I try to open it using right click then click open there is no deleted in filename. I also try to delete the temp folder and open again the file the deleted is gone. There is no issue when there is no deleted in filename it save directly in server and not creating temp folder. It's weird I don't know what happen. Please someone could explain me why is this happening.
Go to the Editor Preference Dialog for VS-Code in winSCP and uncheck the line "External editor opens each file in separate window (process)"
Related
When I open a folder in vscode, any file that was ever not saved before closing vscode is re-opened as unsaved even though it may no longer exist.
Open any file of any type in a workspace
Modify the file
Close VScode without saving the file.
Re-open VSCode
The original file is loaded as unsaved (good)
Save the file, and close it
Close VSCode
Re-open VSCode
The original file is re-loaded as unsaved again (bad).
My VSCode session now loads close to 30 files on startup, even though they have all been saved and in some cases deleted. Even my settings.json file loads as unsaved.
Things I've tried:
Closing all files before exiting
Closing all files, workspace before exiting
Updating every vscode setting I can find relating to file closing and opening at shutdown/startup
Uninstalling vscode and reinstalling. Even after this, the same list of 30 files is loaded at workspace open
In the Windows \users\[user]\Appdata\roaming\Code directory, locate the storage.json file, open in editor.
Remove all of the entries in the OpenedPathsList section
Locate the windowsState.lastActiveWindow.BackupPath entry
Delete all of the subdirectories inside this folder name
EDIT This doesn't actually fix the problem - It just removes the symptoms.
I have small problem with VSCode folder, that opened by default.
Problem description: I start new instance of VSCode (trough File->New Window), and then if I choose File->Open Folder it opens dialog with my Windows user folder as starting point (C:\Users\MyUser)
Question: How can I change that folder in settings (if it possible)? So by default it will show as start point for example D:\development\ ?
At the time I write this answer, this is not possible. There are two problems on Windows, and one problem on Mac and Linux:
VS Code does not provide a default path to the file dialog 1. It does remember the last folder that you opened a file in, but that path cannot be used as a default because it is overwritten constantly.
On Windows only, Electron ignores the default path when creating a file dialog if the default path is a directory 2.
An extension also cannot solve this, because extensions are not allowed to modify the File menu 3.
I think the best option at this point is to pin a folder to the Quick Access area in Windows Explorer, as suggested in a comment, or to put an actual shortcut in the user profile folder.
Workspaces and File > Open Recent may also be helpful if you often open the same folders.
Your main problem is that you are unable to open your specific folder in VScode.
To solve that you can simply open the terminal/cmd in that specific window by just typing cmd in your search bar or just by pressing shift+right-click in that folder.
Now your cmd is open and you just have to type "code ." in the cmd and press enter to open the current folder in your VSCode.
In case that code . doesn't work for you then you have to add the Vscode in the environment variables of your windows.
Visual Studio doesn't provide a specific feature to open a specific path. But there is a solution to your problem. You are saying that you want D:\develpment as a default when you open VS Code. You can go to that specific directory or create shortcut to desktop then click right click on that folder and then click on open with code. If you didnot see open with code then reinstall your VS code and check on open with code when you are reinstalling VS Code.
make a shortcut on the desktop for vscode and then modify it and add the folder after the .exe command. This will default open that folder when you double click on it.
Visual Studio Code can be installed in two ways - User setup and System setup. I strongly believe you have User setup installed in your PC. Try re-installing it System-wide. That should probably fix your problem.
For more information: https://code.visualstudio.com/docs/setup/windows#_user-setup-versus-system-setup
PS: A lot more information is needed, you can share a screenshot of the window and elaborate more on it.
I installed Live Server in VSCode for the first time and am trying to open an .html file with Live Server. I'm following the simple instructions provided here on the official installation page, but to no avail.
I right-click my file in the Explorer as instructed, but "Open With Live Server" doesn't show. I've even tried right-clicking the tab and that doesn't work either. I've quit and re-started VSCode and that didn't work. I set Chrome as my default browser in settings.json and that didn't work. I double checked to make sure Live Server is installed and enabled globally and it is. Please help me figure out what's going on! Thank you!
Oh! I figured it out. I had to open my file by selecting "Open Folder" and then open my folder from there. Then I was able to select my file under the Explorer tab and right-click to open with Live Server. I'm not sure why it worked that way.
It's happened to me few times. My problem was the folder and files names.
Check those names and don't use spaces or weird characters.
Using Visual Studio Code (latest version as well as prior versions), when using the command line to launch I am seeing some odd behavior. Trying to determine if I am missing something, or if this is a bug.
Here is the scenario.
Action 1: I have a workspace open with a couple of files open for editing. If I close VSCODE, and then just open it again the state is restored, I am in the workspace and the files are open for editing. Great.
Action 2: I have a workspace open with a couple of files open for editing. If I then from a command line do "vscode testfile.txt" then the new file gets opened in VSCODE and joins the other opened file. Great.
Action 3: I have a workspace open with a couple of files open for editing. I close VSCODE. I then from a command line do "vscode testfile.txt". VSCODE starts up, but only the new file gets opened in VSCODE. The workspace I had opened is not any more, and the files I had opened are no longer opened. Not so great.
I have tried adding the -r option on the command line but that didn't change anything.
This feels like a bug, but if not help me understand how I get the desired result, which is when VSCODE is not running, and I try to edit a file from the command line, I want VSCODE to restore to the state it was in when last closed, and then add that new file to the mix. Just like if it was already running.
I have set a default path to look for scripts.
But on a new worksheet Ctrl+o doesn't open the default folder and leads to temp folder location, whereas ctrl+S opens to the default path set at preferences.
Both actions should lead to the same folder right.
Is my understanding correct ?
What should i do to correct this ?
That preference tells sql developer where to look for scripts when you execute them, via
#script.sql
It has no bearing on what folders you see when opening or saving a file.
Now, once you do open a file from that directory, the next time you go to Open/Save a file, you'll see that directory listed on the left for quicker navigation.