CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 16:37:53 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"d3a1aadae4b1e3208f2ca0beb73c6b05"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=pXzXElDSmrPS8wQH6C8tTBYEJwknrPRfV3QKj1VF1wGQlLsBuh1HOh13yadmA9qN3dN7ojPz5kpAEz25rWKTpy4ctpL0Zj8%2BkqtaHDn5mXkmzlEsY3%2BFy4wLx5M95lWesZIuJM%2FnLdOS6rTdY6Hx%2BgjaCSOgRWuZXfPU0itgnSoV8o82ZgzgqqXpWMbWthSOrN3RzdKz4T6j8HhepwzIJep%2Bbd6zyIP71q%2FA3yfxbhLVYjIhYoAWJ92LGB%2BuZ%2FhJYzcR3Sl5LPKIN%2BO7yhbIsA%3D%3D--x3zyHVTwaoikuPwH--i7%2B0x7C%2FJb7cj%2FltyZAOPw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1185169450.1753115872; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 16:37:52 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 16:37:52 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AAA4:36713F:118113:1497AD:687E6CE0
Home · rafamadriz/friendly-snippets Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 526
Home
Nicholas O'Kelley edited this page Sep 30, 2023
·
16 revisions
Welcome to the friendly-snippets wiki!
Snippets collection for a set of different programming languages for faster development. This repository has been forked from a couple of VSCode Snippets extensions in addition to individual developers contributions.
As the snippets get individual pages, we will update this list to redirect to them 😎
- CSS, Sass, Less, Stylus
- Gitcommit
- HTML, Pug, Jade
- Latex
- Markdown
- Norg
- Org
- Plantuml
- RMarkdown
- C
- Cobol
- Cpp
- Csharp
- Dart
- eElixir
- Elixir
- Erb
- Erlang
- Fennel
- Fortran
- Glsl
- Go
- Haskell
- Java
- Javascript, Typescript, Javascriptreact, Typescriptreact
- Julia
- Kotlin
- Liquid
- Lua
- Make
- Mint
- Objc
- Php
- Python
- Quarto
- R
- Rescript
- Ruby
- Rust
- Scala
- Shell
- Solidity
- Sql
- Swift
- Verilog
- Django
- Docker
- Docker Compose
- EJS
- Flutter
- Jekyll
- Kubernetes
- Rails
- Svelte
- Vue
- Godot (gdscript)
- Unreal Engine
Below is an example of extending snippets, in particular making JavaScript React available for JavaScript files:
Note: This example uses nvim-cmp
with Luasnip
require("luasnip").filetype_extend("typescript", { "javascript" })
For more specific implementations, see your snippet engines documentation.
-- Snippet Courtesy of @Zeioth,
{
"L3MON4D3/LuaSnip",
build = vim.fn.has "win32" ~= 0 and "make install_jsregexp" or nil,
dependencies = {
"rafamadriz/friendly-snippets",
"benfowler/telescope-luasnip.nvim",
},
config = function(_, opts)
if opts then require("luasnip").config.setup(opts) end
vim.tbl_map(
function(type) require("luasnip.loaders.from_" .. type).lazy_load() end,
{ "vscode", "snipmate", "lua" }
)
-- friendly-snippets - enable standardized comments snippets
require("luasnip").filetype_extend("typescript", { "tsdoc" })
require("luasnip").filetype_extend("javascript", { "jsdoc" })
require("luasnip").filetype_extend("lua", { "luadoc" })
require("luasnip").filetype_extend("python", { "pydoc" })
require("luasnip").filetype_extend("rust", { "rustdoc" })
require("luasnip").filetype_extend("cs", { "csharpdoc" })
require("luasnip").filetype_extend("java", { "javadoc" })
require("luasnip").filetype_extend("c", { "cdoc" })
require("luasnip").filetype_extend("cpp", { "cppdoc" })
require("luasnip").filetype_extend("php", { "phpdoc" })
require("luasnip").filetype_extend("kotlin", { "kdoc" })
require("luasnip").filetype_extend("ruby", { "rdoc" })
require("luasnip").filetype_extend("sh", { "shelldoc" })
end,
},
Clone this wiki locally
You can’t perform that action at this time.