how to use the plantUML preview in VSCode? - visual-studio-code

I am trying to use plantuml add-ons on VSCode: there are several but none of them is working.
In this eample I am using the plantUML add-on.
As you can see on the second image the preview is blank.
Can you help me ?

I had the same issue. My preview started working right after I installed the Java Runtime Environment (JRE).

the solution is:
You can open the diagram by hitting ALT + D to preview the PlantUML diagram on Windows and Option key + D on Mac.

Download Java Runtime . Click "Instructions"
Install graphviz
sudo apt update
sudo apt install graphviz
Enjoy

On windows, you can now use chocolatey:
choco install plantuml
You then have to restart VsCode for the previewer to properly work.

Related

Strange vscode issue in WSL

I've been trying to set up the vscode code . shortcut to work in WSL. Following the instructions from the vscode website, I reinstalled vscode in windows, reinstalled the Remote-Wsl extension, made sure it was in my System Path, and tried running code . in the WSL linux distro terminal. I get the message instructing me to install it on the windows side, and asking me if I want to continue. I hit yes, but it doesn't create the code server folder in my home directory. Typing code . again does the same thing.
Does anyone know why this may be?
This is the output text:
To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the code command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N]
The error message isn't just pointing out that you need to install the Windows version, but it indicates that you have the Linux version installed in WSL and should remove it.
From that, it sounds like at some point you may have installed the Linux version of VSCode in WSL, and that one is taking priority. You'll need to uninstall it in order to run the Windows version of VSCode with the "Remote - WSL" extension.
You don't mention what distribution you are running, but if it is Ubuntu, try:
sudo apt remove code # or
sudo apt remove code-insiders
Also see the uninstall doc from Microsoft.

Neovim Configuration Steps after Installation

How do you config a terminal and IDE using NEOVIM after brew install neovim and the editor being Globally Available
please do add your steps for the terminal on os~x if possible
I think you mean setting neovim as default Editor?
write following two command in your ~/.bashrc if using bash shell OR in ~/.zshrc
export EDITOR=nvim
export VISUAL="$EDITOR"
If you re asking about where to start in terms of plugins for web development you can take a look at:
https://www.freecodecamp.org/news/a-guide-to-modern-web-development-with-neo-vim-333f7efbf8e2/

Vs code blank terminal problem, can't enter anything

I'm user using Visual Studio code.
A few days ago, I've gone through some problems.
It's about "blank terminal". I'm not sure what trigger this problem.
I guess it's related with vs code updated 1.39 version. I attached the picture below.
enter image description here
I've tried searching solution in order to solve this problem. but I failed.
1. remove the 1.39 version. and re install vscode. (remove vscode file)
- sudo apt remove vscode, sudo apt autoremove
- I searched .vscode and then remove all( some setting file left.)
2. I tried to install vscode by snap, but result was same.
3. I started with root
- sudo code --user-data-dir => teminal is possible to see but environments not working => fail
4. I tried down grade.
- version 38,37 => failed (it's same result)
- version 32 => success (but it's old version, limited several utilities)
**Ubuntu 18.04.3 LTS , 64 bit
Anyone having same problems and working out, Please tell some methods.
I look forward to getting reply. Thanks.
Setting "terminal.integrated.inheritEnv" to true in settings.json solved this problem for me.
I think it is related to this bug
You need to select a default shell. Where it says 1:, click the down arrow and select your shell.
I was running into this issue with vscode that was installed through the ubuntu software center
I uninstalled it and deleted any settings using this https://superuser.com/questions/1113022/how-do-i-remove-vs-code-settings-from-ubuntu
I then installed through anaconda since I was already using it. This install worked fine.

How to open phpstorm through ubuntu terminal in Ubuntu 16.x?

What are the steps to create a launcher files to open PhpStorm in Ubuntu?
I found the solution. Type in your terminal:
cd /var/www/MYPHPSTORMFOLDER/PhpStorm-162.2380.11/bin
Press Enter and type:
./phpstorm.sh
Then PHPStorm will open and go to the Launcher in left side, you can find PHPStorm icon there and just right click on that, select the option "Lock to Launcher" . FYI : First install PHPStorm through terminal.
$/your phpstorm path/bin/phpstorm.sh
Example
$/opt/PhpStorm-193.6494.47/bin/phpstorm.sh
This given solution has been tested on Ubuntu 22.10 and PHPStorm 22.3 and also NOTE that I have installed PHPStorm from snap store
Open PHPStorm
phpstorm
Open in current directory
phpstorm .
Bonus: install PHPStorm form snap store
sudo snap install phpstorm
Or for classic version
sudo snap install phpstorm --classic
Or even EAP (early access program)
sudo snap install phpstorm --classic --edge

How to upgrade graphlab create?

I want to know where to paste this command
pip install graphlab-create==1.6.1
so that it can upgrade my graphlab create.
I use windows 10 64 bit.
You should type this in your terminal. If you have installed it using the Dato Launcher, then you can get access to the terminal by clicking on the "Terminal" icon.