Static IP address

I am using VIM2 with Fenix 0.6 Ubuntu 18.04.3 LTS Server.
How do I set static ip address from the terminal window?

Hello, you tried this?

Configure static IP address on Ubuntu 18.04

@sqhy2122
This is the correct method but the spacing is very important in the netplan file.

So make sure to use the exact space from the original file.