Browse Source

Improvements and last fix

Pierre-Yves Barriat 1 year ago
parent
commit
0ac44ec2f2
5 changed files with 63 additions and 0 deletions
  1. 8 0
      VSCode_Ubuntu.md
  2. BIN
      VSCode_Ubuntu.pdf
  3. 55 0
      VSCode_WSL.md
  4. BIN
      VSCode_WSL.pdf
  5. BIN
      assets/term_preview.png

+ 8 - 0
VSCode_Ubuntu.md

@@ -130,4 +130,12 @@ Now, try to run all the cells of this notebook :exclamation:
 
 ---
 
+# VS Code nice extensions
+
+- `Tabnine` : code faster with AI code completions
+- `Regex Previewer` : shows the current regular expression's matches
+- `Modern Fortran` : Fortran syntax is missing in built-in version
+
+---
+
 # Visual Studio Code for Ubuntu :speech_balloon:

BIN
VSCode_Ubuntu.pdf


+ 55 - 0
VSCode_WSL.md

@@ -123,6 +123,26 @@ sudo apt upgrade
 
 ---
 
+## Graphical User Interface
+
+Open a **Powershell terminal** in **User mode** and do
+
+```sh
+wsl --update
+```
+
+> maybe an Admin login/password is required (so ask for with CII interface)
+
+Open a new **Ubuntu terminal** and do
+
+```bash
+sudo apt update
+sudo apt upgrade
+sudo apt install x11-apps -y
+```
+
+---
+
 # VS Code 
 
 You can install Visual Studio Code from the web link [here](https://code.visualstudio.com/download)
@@ -247,4 +267,39 @@ Now, try to run all the cells of this notebook :exclamation:
 
 ---
 
+# VS Code nice extensions
+
+- `Remote - SSH` : lets you use any remote machine with a SSH server
+- `Tabnine` : code faster with AI code completions
+- `Regex Previewer` : shows the current regular expression's matches
+- `Modern Fortran` : Fortran syntax is missing in built-in version
+
+---
+
+## VSCode - Remote SSH : example
+
+Select `Remote-SSH: Open Configuration File`
+
+```bash
+Host cyclone
+    HostName cyclone.elic.ucl.ac.be
+    User pbarriat
+```
+
+Visual Studio Code is now configured and ready to connect to your server :
+
+click on the green `Open a remote window` button in the bottom left-hand corner and select `Remote-SSH: Connect to Host`
+
+> On ELIC workstation, choose a Python environment from `ELIC_Python` module : `/opt/easybuild/...`
+
+---
+
+# Ubuntu with WSL (and without VS Code)
+
+I strongly recommand to install `Windows Terminal Preview` from **Microsft Store**
+
+![h:350](assets/term_preview.png)
+
+---
+
 # Visual Studio Code for WSL :speech_balloon:

BIN
VSCode_WSL.pdf


BIN
assets/term_preview.png