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

Genius Snippets

paulo.moreira

|
40 installs
| (1) | Free
Uma coleção de snippets para auxiliar no dia a dia de trabalho Genius.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

genius-snippets README

Biblioteca de snippets para automatizar comandos mais utilizados no dia a dia de trabalho do time de Genius

Features

Snippets de código

// digite iife
(() => {
  
})()


// digite delay
document.addEventListener('DOMContentLoaded', () => {
  //trecho de código aqui
});

// digite major-delay
document.addEventListener('readystatechange', event => { 
  if (event.target.readyState === "complete") {
    //trecho de código aqui
  }
});

// digite addstyle
const addStyle = (styles) => {
  const css = styles,
    head = document.head || document.getElementsByTagName('head')[0],
    style = document.createElement('style');
  head.appendChild(style);
  style.setAttribute('type', 'text/css');
  if (style.styleSheet) {
    // This is required for IE8 and below.
    style.styleSheet.cssText = css;
  } else {
    style.appendChild(document.createTextNode(css));
  }
};

Snnipets com padrões para subir script no admin

// digite script-ftp
<!-- descreva a tarefa - GENIUSATD-1234 -->
<!-- 22/06/2023 | Autor -->
<script src="https://legado.autoforce.com.br/plugins/teste.js"></script>

// digite script-inline
<!-- descreva a tarefa - GENIUSATD-1234 -->
<!-- 22/06/2023 | Autor -->
<script>
  
</script>

// digite style-ftp
<!-- descreva a tarefa - GENIUSATD-1234 -->
<!-- 22/06/2023 | Autor -->
<link rel="stylesheet" href="https://legado.autoforce.com.br/plugins/teste.js">

// digite style-inline
<!-- descreva a tarefa - GENIUSATD-1234 -->
<!-- 22/06/2023 | Autor -->
<style>
  
</style>

Contribute

Fiquem a vontade para contribuir para o projeto

Documentação do Visual Studio Code para criação de snippets

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft