Prettier and VSCode

Basic usage of prettier formatter with VSCode Install prettier as your project dependency / dev-dependency (with npm or your desidered repo) Create a file called .prettierrc with basic options to share with your team member and commit it in the root directory of your project If you would like to Read more…

VsCode custom snippets

Base configuration VsCode snippets To create a custom vscode code snippets it’s pretty straightforward Navigate inside vscode File -> Preferences -> User Snippets Select the one based in the visibility In this example “new global snippets file” (with ubuntu it’s saved into ~/.config/Code/User/snippets) The following code defines two snippets: when Read more…

Fun with shell prompt – $PS1

PS1 is a primary prompt variable. This variable displays a default structure to the user that makes a login Standard ubuntu The standard ubuntu PS1 variable looks like: alberto@alberto-5490:~$ Test To test your settings export the PS1 variable with your settings: Make it permanent To make your settings permanent edit your Read more…