DEV Community

Discussion on: What are your "must have" custom snippets for your editor/IDE?

Collapse
 
moopet profile image
Ben Sinclair

About the only one I use is this:

  autocmd FileType php nnoremap <buffer> <leader>dump Oheader('X-XSS-Protection:0');ob_get_clean(); echo '<pre>'; var_dump(); die;<esc>F(a

which is basically the equivalent of everyone's console.logs but for PHP.

I'm not big on snippets. I've tried them and never got the hang of them!