Skip to content

Instantly share code, notes, and snippets.

@stefanpl
stefanpl / javascript-typescript-jsts-jt.code-snippets
Last active September 28, 2023 09:00
Collection of vscode snippets for JavaScript/TypeScript
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab ps, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript,javascriptreact,typescriptreact",
@stefanpl
stefanpl / vscode-essentials.md
Created April 14, 2021 08:08
VSCode Essentials

Visual Studio Code Essentials

An opinionated introduction

vscode logo

Why is this "opinionated"?

  • I might state things without giving sources.
  • I haven't read the full vscods docs, let alone the source code. My knowledge is limited.
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->