-
Notifications
You must be signed in to change notification settings - Fork 317
"vscode ." command always opens notebook folder #898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No idea on this one. The icon is calling "\WPy64-3830\scripts\winvscode.bat". |
in fact, there is a solution: change "\WPy64-3830\scripts\winvscode.bat"
that is modify one line:
instead of
|
you may have to call the "winvscode.bat" directly, so maybe create a copy with a shorter name, like "vsc.bat" |
I guess you mean exe files are interfacing to run these scripts. that is nice. but this |
as I said, you must call the ".bat" directly: "\WPy64-3830\scripts\winvscode.bat ." the icons have been volontary stripped down to just call "noshell.vbs" with the batch as parameter. to make the logic as "hackable" as you want. but I think your "." context is lost forever in this process. so you may simply shortcut directly to the "winvscode.bat". |
again my bad, I forgot the terminal in the 3760's scripts folder. it was running its script :P using the batch file directly starts nicely. but unlike my assumption "VS Code.exe" does not directly execute this batch file, so the problem half solved |
@stonebig |
I copied&edited the content to fit my need. It uses batch file to open other portable VS Code I use with the portability of winpython added. It closes console used to run the script by the use of "start" command. it does fine for now until the time I forgot I had this file edited :P
though it would be better to have winpython's vscode executable accept parameters. |
I'll remove "cd/D "%WINPYWORKDIR%" from next release so you can drop your file or directory on the "VS Code .exe" icon |
Uh oh!
There was an error while loading. Please reload this page.
hey there,
I am used to use vscode as portable and it is just a path among my environment variables. I also use Total Commander as the file explorer, and run vscode simply by typing "code ." in any directory. other times I open a command prompt anywhere, browse through folders with old good console commands and then again use "code ." to start editing.
today I am trying to work with python, and to be honest I dont like installing things system wide, thus the portables. I renamed "VS Code.exe" to "vscode.exe" to write without spaces, but this dot problem I met is annoying.
whenever I type "vscode .", it uses notebooks folder in WinPython directory. "vscode %cd%" works but it is tiresome to both remember and write.
I dont know how popular vscode is with WinPython, but I am hoping you would fix this behaviour to open current directory.
version: WPy64-3830
The text was updated successfully, but these errors were encountered: