You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really cool to be able to write prompt snippets somewhere! A bit like VSCode's snippets already working:
Written in a json file as VSCode's snippets, or maybe a folder of files for large prompts
Ability to have it listed in the context menu, maybe under user category sub-menus
Ability to call a snippet in various existing prompt places like (Ask, Chat, ...)
Variable substitutions in the snippet could be replaced by various relevant strings like (note the syntax is not final):
%selection%: paste the current file's selection, or the entire file is none selected
%filename% / %filepath%: the file name or path (code prompts with filenames comment help AI to name subsequent "file block" like adding a ".test.js" ... )
%language%%runtine%: the current file language mode (python, rust, js...) and runtime target (node, browser, deno, ...)
%file(path)%: load and paste a file content
%1%%2%%3% ... : snippet cursor position to type string, using tab to got to next one (like VSCode's snippets
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
First of all, wahoo! Great extension! 🥳
It would be really cool to be able to write prompt snippets somewhere! A bit like VSCode's snippets already working:
%selection%
: paste the current file's selection, or the entire file is none selected%filename%
/%filepath%
: the file name or path (code prompts with filenames comment help AI to name subsequent "file block" like adding a ".test.js" ... )%language%
%runtine%
: the current file language mode (python, rust, js...) and runtime target (node, browser, deno, ...)%file(path)%
: load and paste a file content%1%
%2%
%3%
... : snippet cursor position to type string, using tab to got to next one (like VSCode's snippetsAny other ideas?
Would be AIwesome !
Beta Was this translation helpful? Give feedback.
All reactions