Skip to content
Snippets Groups Projects
Commit 365fa48a authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

Update Editors/vscode.md, Editors/README.md files

parent 5c391c53
No related branches found
No related tags found
No related merge requests found
# Editors for development
Here one can find some help on getting started with some editors or usefull configurations or packages to use.
If you have a nice addition please try to submit it.
Thanks.
List of Editors:
- Vim
- Emacs
- Gedit
- Atom
- VS-Code
- Pycharm
# VS Code from Microsoft
[Download](https://code.visualstudio.com/)
*Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. Users can change the theme, keyboard shortcuts, preferences, and install extensions that add additional functionality.* (Wikipedia)
## Remote SSH
There is package called `Remote Development` in VSCode which includes
- Remote SSH
- Remote WSL
- Remote Containers
Although all might be useful, we try to make use of the first one Remote-SSH. If you want to connect to `jet01.img.univie.ac.at` that is not a problem. Works out of the box. However, using `srvx8` does not. The kernel is too old and requirements are not met. There is a fix. We are going to use a [singularity container](https://sylabs.io/guides/3.7/user-guide/) to run a more recent version of `node` and allow VSCode to use `srvx8` as well. It will complain a bit, but work.
Here is how:
1. Login to `srvx8`
2. run `/opt/containers/vscode-server/setup.sh`
3. Look inside `$HOME/.vscode-server/singularity.bash` and make sure that path that you require are available in `SINGULARITY_BIND` variable. Your Home directory is always available. Other system path not.
4. Switch `remote.SSH.localServerDownload` to `off` in the Remote SSH package.
5. Setup a new host in Remote SSH on your VScode and connect to `srvx8`.
Configure a Python interpreter in VSCode according to the installed module:
`/home/opt/spack/opt/spack/linux-centos6-haswell/gcc-5.3.0/anaconda3-2020.07-opjqtspow2mjqthtdxvx7epz6rntkv2p/bin/python`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment