Access Pycharm From Ubuntu
WSL working command
To Check whether WSL is running in the computer we can check with command in ubuntu "$grep -qi Microsoft/proc/version".
It gives the version of wsl installed in the system
To check we can trigger windows app in wsl
type "notepad.exe" in terminal
it should open the notepad in windows
If it works we can trigger pycharm or vscode by just adding path to wsl
First copy the pycharm file location in the windows.
usually it will be in the "C:\Program Files\JetBrains\PyCharm 2024.1.1\bin" location.
to add it to specific user in ubuntu we can add below command in .bashrc file in home echo 'export PATH="$PATH:/mnt/c/Program Files/JetBrains/PyCharm 2024.1.1/bin"' >> ~/.bashrc.
to add it to all users in ubuntu we add below command in /etc/profile(or)environment file.
the command is export PATH="$PATH:/mnt/c/Program Files/JetBrains/PyCharm 2024.1.1/bin".