Skip to content

SuperSheep1021/vsCode

Repository files navigation

ShaderlabVSCode

ShaderlabVSCode is a Visual Studio Code extension for Unity Shaderlab programming.

Documents | Forum | Email | Asset Store

Version

v 1.1.4

Key Features

1. Syntax Highlighting

2. Code Completion and Basic Intellisense

pg)

3. Hover Information

4. Signature Help

5. Document Symbols

Press CTRL + SHIFT + o on Windows or CMD + SHIFT + o on macOS.

6. Code Snippets

Below are the snippets:

snippets Description
blend1_1 Blend One One
blendsa_1-sa Blend SrcAlpha OneMinusSrcAlpha
blend1_1-sa Blend One OneMinusSrcAlpha
blend1-dc_1 Blend OneMinusDstColor One
blenddc_0 Blend DstColor Zero
blenddc_sc Blend DstColor SrcColor
cgp CGPROGRAM...ENCG
for for loop
fallback Fallback
glp GLSLPROGRAM...ENCGLSL
if if { ... }
ifelse if {...} else {...}
incucg #include "UnityCG.cginc"
inclight #include "Lighting.cginc"
incautolight #include "AutoLight.cginc"
props Properties
prop2d 2D type property
propcube Cube type property
propc Color type property
propv Vector type property
propf Float type property
proprange Range type proprety
region //#region ... //#endregion
region2 //region ... //endregion
shader Shader { ... }
subshader SubShader { ... }
struct structure
tags Tags { ... }
tagstt Tags with both of RenderType and Queue is Transparent

7. Auto Format

Format Document

Two ways to format document:

  1. Right click the editor area and select Format Document menu in context menu
  2. Open Command Palette and type "Format Document", and then press ENTER key on keyborad.

Misc Features

1. Region Mark

There are two ways:

  • //#region and //#endregion
  • //region and //#endregion

Star And Review

If you like this extension, a good Star and Review on Asset Store would be much appreciated and thanks a lot.


For more information

Visit site http:https://www.amlovey.com

About

unity shader(URP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published