So I am using Ubuntu Linux terminal(also have Debian) in windows 10. according to this site:
you need Remote – WSL extention to connect with VScode, I am using VSCodium.
So my question is can I install Remote – WSL extention on VSCodium.
Or are there any alternatives to configure it without this extension.I saw on VSCodium market and there is no Remote – WSL.
My purpose is with Ubuntu or Debian terminal to create folders and files such html,css,js.
I can do all this by entering in desktop environment :
cd /mnt/c/Users/<username>/Desktop
and also can use this commands:
pwd
cd
cd ..
clear
cd /
cd ~
mkdir
touch
mv
My problem is that I can not open created folder or any app(including VSCodium), for example open existing folder using this command:
open . or open index.html
this commands are not working.can you help with that?
how can I open created folder,file or app using terminal.
Is there any extension to connect VSCodium to my WSL2 and do all commands above?
2
Answers
You cannot legally use any of the MS "Remote" extensions as they are closed source and cannot legally be installed on anything other than Microsoft Visual Studio Code, as per the license.
AFAIK there is no open source alternative yet.
Lack of a well supported remote extension within VSCodium is very inconvenient. I wanted to develop some Go code (other languages may have different requirements). There are currently a few options that I tried:
1. Leave the code in Windows
WSL mounts the Windows drives, so your editor running in Windows can change the local files and Linux will pick the changes up.
Pros:
Cons:
2. Mess with the extension itself
With a few tweaks it’s pretty simple to get the VSCode extension running, see: https://github.com/VSCodium/vscodium/issues/1265
Pros:
Cons:
3. Launch Codium from within WSL (WSLg)
This is what I have ended up using because not being able to see errors in my IDE was too annoying (this is most likely a Go thing though and was no issue for JS when tested).
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list
sudo apt update && sudo apt install codium
echo -e >> ~/.bashrc "nexport GDK_SCALE=2nalias codium='DONT_PROMPT_WSL_INSTALL=1 codium'"
source ~/.bashrc
%UserProfile%.wslgconfig
Then in Windows, create a shortcut and in the target field add:
C:WindowsSystem32wsl.exe bash -c "export GDK_SCALE=2 && DONT_PROMPT_WSL_INSTALL=1 codium"
This will launch the WSL version directly.
Pros:
Cons: