Ben Chuanlong Du's Blog

It is never too late to learn.

Configuring Terminal in Visual Studio Code

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Configure The Shortcut ctrl+x ctrl+e

The shortcut ctrl+x ctrl+e edits a bash prompt using $EDITOR in terminals. However, this doesn't work out-of-the-box in the teminal in Visual …

Editing Shell Commands Using Vim

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. A bash prompt can be editted in both Vi mode and Emacs mode. The default is Emacs mode. You can turn on the Vi mode by set -o vi in .bashrc …

Useful Rust Crates for String

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

indoc

The indoc crate provides a procedural macro for indented string literals. The indoc!() macro takes a multiline string literal and un-indents it at compile time so the leftmost non-space character …