Editor and IDE Support¶
There is xonsh extension for VSCode. To install search “xonsh” using extensions
menu or just press
F1 and run without > preceding:
ext install jnoortheen.xonsh
There is an emacs mode for editing xonsh scripts available from the MELPA repository. If you are not familiar see the installation instructions there.
Then just add this line to your emacs configuration file:
You can use xonsh as your interactive shell in Emacs in a Comint buffer. This way you keep all the Emacs editing power in the shell, but you loose xonsh’s completion feature.
Make sure you install xonsh with readline support and in your
.xonshrc file define
$SHELL_TYPE = 'readline'
Also, in Emacs set
explicit-shell-file-name to your xonsh executable.
The second option is to run xonsh in an Ansi-term buffer inside Emacs. This way you have to switch modes if you want do Emacs-style editing, but you keep xonsh’s impressive completion.
For this it is preferred to have xonsh installed with the
prompt-toolkit. Then you can leave
$SHELL_TYPE at its default.
Emacs will prompt you for the path of the xonsh executable when you