Skip to content

Git-GoR/5e-homebrew-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5et Homebrew Snippets

A handy extension to make Homebrewers' lifes easier.

Example video

Installation

Install the extension directly in VSCode through its Marketplace. Here is it's external link.

Alternatively, copy the extension into your VS Code extensions folder. The default location is %USERPROFILE%\.vscode\extensions


List of Snippets

Meta block

The meta block is essential for every homebrew content you make.

Prefix Purpose
meta Full basic _meta block.
unixDate The number of seconds since the Unix epoch. Useful for updating dateModified.

Text entries

Different snippets for text entries, all found in the Renderer Demo.

Prefix Purpose
section Section entry, creates a "basement" level (-1)
entries General entry block
quote Quote block
inset Inset block
insetReadaloud Inset block, but on blue color
list List with style options
item Item used within lists
tableEntry Table block for text entries. Contains many optional fields
abilityDC Centered text with the format "Name = 8 + prof + mod"
abilityAttackMod Centered text with the format "Name attack modifier = prof + mod"
abilityGeneric Centered text with the format "Name = text mod"
image External image link
statblock Creates an embed entry of the referenced data, used to prevent duplication. (Sub)class features require extra properties.

Class and Subclass

Be aware that these snippets are long and wordy with many optional parts, make sure you delete those that do not apply to the homebrew you are converting to prevent errors.

Prefix Purpose
class Full class skeleton
classFeature Skeleton of class feature
classFeatureRef Reference a class feature inside a class
subclass Full subclass skeleton
subclassFeature Skeleton of subclass feature
subclassFeatureRef Reference a subclass feature inside a subclass feature list, do not mistake with refSubclassFeature
refSubclassFeature Reference a subclass feature in the entries of a different subclass feature, used to create nested subclass features

General Categories

Snippets for

Prefix Purpose
action Full action skeleton
background Full background skeleton
boon Full boon skeleton
condition Full condition skeleton
cult Full cult skeleton
deity Full deity skeleton. Most data is optional.
disease Full disease skeleton
feat Full feat skeleton. Check the prerequisites structure.
hazard Full hazard skeleton
language Full language skeleton. Most data is optional.
optionalFeature Full optional feature skeleton. Check prerequisites structure.
race Full race skeleton
variantRule Full variant rule skeleton

Tag snippets

These snippets are better used with VSC's "Surround with snippet..." feature. Their purpose is to autocomplete {@ } tags, adding the different corresponding pipes | to each of them.

The full list can be seen in the /snippets/tags.json file.

About

A VS Code extension with custom JSON snippets

Resources

License

Stars

Watchers

Forks

Packages

No packages published