Skip to content

Instantly share code, notes, and snippets.

@andycochrane
Created December 15, 2017 17:04
Show Gist options
  • Save andycochrane/c34a2e3a31712bd6777b3c114be0a11e to your computer and use it in GitHub Desktop.
Save andycochrane/c34a2e3a31712bd6777b3c114be0a11e to your computer and use it in GitHub Desktop.
VS Code auto rel="noopener"
"No Opener": {
"prefix": "blank",
"body": [
"target=\"_blank\" rel=\"noopener\""
],
"description": "Add rel=noopener to links with target=_blank"
}
@StefanoTesla
Copy link

how to use this??

@andycochrane
Copy link
Author

Assuming you're a VS Code user...

Follow this link to the docs that show how to create your own snippets: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment