Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>jrbashnippetsNew to Visual Studio Code? Get it now.
jrbashnippets

jrbashnippets

Jordi Roca

|
67 installs
| (0) | Free
Snippets BASH para VS Code de Jordi Roca
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Logo

JR BASHnippets

Snippets BASH para VS Code de Jordi Roca

Report Bug . Request Feature

Downloads Contributors Stargazers Issues License

Table Of Contents

  • About the Project
  • Built With
  • Getting Started
  • Usage
  • License
  • Authors

About The Project

Screen Shot

Bash Snippets for VS Code

Built With

First built on December, 29th, 2022 using:

  • MacOS Ventura 13.1
  • Visual Studio Code 1.74
  • Bash 5.2.15
  • ZSH 5.8.1

Getting Started

Add the extension to VS Code

Usage

When editing shellscript files use the following snippets:

prefix description
shebang-bash
Adds a shebang for 'bash' shell scripts, a magic comment for file encoding and a header
heredoc2var
Assign heredoc to variable
heredoc2file
cat heredoc to file
if
An IF command.
elseif
Add an elseif to an if command.
else
else
forin
for VAR in LIST
fori
For I with an INDEX
while
While loop
until
until loop
fn
Insert a function definition
contains
Check if substring in a string
indexofsubstring
Index of substring in a string

License

Distributed under the MIT License. See LICENSE for more information.

Authors

  • Jordi Roca - JRBashnippets for VSCode
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft