Git Product home page Git Product logo

shaderlabvs's Introduction

中文版 README

ShaderlabVS

ShaderlabVS is a Visual Studio Plugin for Unity Shaderlab programming. Latest releae build can be found at Visual Studio Marketplace or the Release page. Paid Version with Long Term Support is available on Asset Store.

If you are looking for Shaderlab extensions for Visual Studio Code, you can take look at ShaderlabVSCode(Free).

Open Source Love GitHub version

Supports files:

  • .shader
  • .cginc
  • .glslinc
  • .compute
  • .cg
  • .hlsl

Features

Syntax Hightlighting and outlining

Highlighting

Quickinfo

QuickInfo

Code Completion

CodeCompletion

Signature help for CG and Unity built in functions

SignatureHelp

Supports Dark Theme

dark

Development

Requirements

  • Visual Studio
  • Visual Studio SDK

How to debug in Visual Studio

  1. Download and install Visual Studio SDK
  2. Open ShaderlabVS solution
  3. Press F6 to build solution
  4. If you want to debug it in Visual Studio, and encounter problems, please make sure the Start exteral program and Comand line arguments in the Debug tab of ShaderlabVS project settings have value as follow:
    1. Set Start exteral program to the path of devenv.exe (the Visual studio main program)
    2. set Comand line arguments to /rootsuffix Exp. Below is a screenshot for the settings:

Support Visual Studio Versions:

  • Visual Studio 2013
  • Visual Studio 2015
  • Visual Studio 2017

The other version are not tested, not sure if there are also work or not.

Thanks To

晨曦

Buy me a coffe

If you like this extension, and want to buy me a coffee. You can via Paypal.

shaderlabvs's People

Contributors

wudixiaop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shaderlabvs's Issues

编译错误,未能找到exe

您好,发生编译错误:
Could not add the file "ShaderlabVS.LexTools.exe" to the zip package "bin\Debug\ShaderlabVS.vsix". 未能找到文件“....haderLab\ShaderlabVS\Src\ShaderlabVS\ShaderlabVS.LexTools.exe”
请问这个应该怎么解决呢?

Request to Publish Extension on open-vsx.org

Hello,

Thank you for developing the Shaderlab extension; it's been very useful! I noticed that the extension is available on the Microsoft Marketplace but not on open-vsx.org, which is an open-source alternative that serves the broader community, including VSCodium users.

Would you consider publishing your extension on open-vsx.org as well? It would benefit users who prefer or are required to use open-source software. The process is outlined here: Publishing Extensions.

Thank you for considering this request. I'm looking forward to continuing to use Shaderlab in my development environment.

Best regards,
Tony

发现个问题,换行后没有对齐

vs2015,没装插件之前,按回车后花括号可以自动对齐,装了之后,shader关键字高亮了,但是按下回车,光标就定位到行首了,希望添加自动对齐的功能,谢谢~

请求帮助,VS2015企业版无高亮无自动补全

附上安装截图以及日志、
cmd运行结果:
http://7xngf3.com1.z0.glb.clouddn.com/aa.PNG
shader没有高亮
http://7xngf3.com1.z0.glb.clouddn.com/aa2.PNG
已经安装了插件
http://7xngf3.com1.z0.glb.clouddn.com/aa3.PNG
————————————
2016/7/15 12:08:30 - Microsoft VSIX Installer
2016/7/15 12:08:30 - -------------------------------------------
2016/7/15 12:08:30 - Initializing Install...
2016/7/15 12:08:30 - Extension Details...
2016/7/15 12:08:30 - Identifier : ShaderlabVS..c702cfb7-573c-45f4-9469-115fcb519ad2
2016/7/15 12:08:30 - Name : ShaderlabVS
2016/7/15 12:08:30 - Author : Rocky Lai
2016/7/15 12:08:30 - Version : 0.6
2016/7/15 12:08:30 - Description : ShaderlabVS is a Visual Studio plugin for Unity3D shader programming.
2016/7/15 12:08:30 - Locale : zh-CN
2016/7/15 12:08:30 - MoreInfoURL : https://github.com/wudixiaop/ShaderlabVS/blob/master/README.md
2016/7/15 12:08:30 - InstalledByMSI : False
2016/7/15 12:08:30 - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
2016/7/15 12:08:30 -
2016/7/15 12:08:30 - SignatureState : Unsigned
2016/7/15 12:08:30 - Supported Products :
2016/7/15 12:08:30 - Microsoft.VisualStudio.Pro
2016/7/15 12:08:30 - Version : [11.0,12.0]
2016/7/15 12:08:30 - Microsoft.VisualStudio.Pro
2016/7/15 12:08:30 - Version : [14.0,15.0)
2016/7/15 12:08:30 - Microsoft.VisualStudio.VSWinExpress
2016/7/15 12:08:30 - Version : [11.0,12.0]
2016/7/15 12:08:30 - Microsoft.VisualStudio.VSWinExpress
2016/7/15 12:08:30 - Version : [14.0,15.0)
2016/7/15 12:08:30 - Microsoft.VisualStudio.Ultimate
2016/7/15 12:08:30 - Version : [11.0,12.0]
2016/7/15 12:08:30 - Microsoft.VisualStudio.Premium
2016/7/15 12:08:30 - Version : [11.0,12.0]
2016/7/15 12:08:30 - Microsoft.VisualStudio.VSWinDesktopExpress
2016/7/15 12:08:30 - Version : [11.0,12.0]
2016/7/15 12:08:30 - Microsoft.VisualStudio.Community
2016/7/15 12:08:30 - Version : [14.0,15.0)
2016/7/15 12:08:30 - Microsoft.VisualStudio.Enterprise
2016/7/15 12:08:30 - Version : [14.0,15.0)
2016/7/15 12:08:30 -
2016/7/15 12:08:30 - References :
2016/7/15 12:08:30 - Signature Details...
2016/7/15 12:08:30 - Extension is not signed.
2016/7/15 12:08:30 -
2016/7/15 12:08:30 - Searching for applicable products...
2016/7/15 12:08:30 - Found installed product - Microsoft Visual Studio Enterprise 2015
2016/7/15 12:08:32 - The extension with ID 'ShaderlabVS..c702cfb7-573c-45f4-9469-115fcb519ad2' is not installed to Microsoft Visual Studio Enterprise 2015.
2016/7/15 12:08:32 - Found installed product - Microsoft Visual Studio Professional 2015
2016/7/15 12:08:32 - Found installed product - Microsoft Visual Studio Community 2015
2016/7/15 12:08:32 - Found installed product - Microsoft Visual Studio 2015 Shell (Integrated)
2016/7/15 12:08:32 - Found installed product - Global Location
2016/7/15 12:08:40 - The following target products have been selected...
2016/7/15 12:08:40 - Microsoft Visual Studio Enterprise 2015
2016/7/15 12:08:40 -
2016/7/15 12:08:40 - Beginning to install extension to Microsoft Visual Studio Enterprise 2015...
2016/7/15 12:08:40 - Install to Microsoft Visual Studio Enterprise 2015 completed successfully. The extension has been installed to C:\USERS\ZHANGWEIXIAO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\PTBMHZOF.GJ1\

build error

错误 1 There was a problem validating the xml schema "C:\Users\pc\Desktop\ShaderlabVS-master\Src\ShaderlabVS\obj\Debug\extension.vsixmanifest". 元素 命名空间“http://schemas.microsoft.com/developer/vsx-schema/2011”中的“Metadata”。 的子元素 命名空间“http://schemas.microsoft.com/developer/vsx-schema/2011”中的“DisplayName”。 无效。应为可能元素的列表: 命名空间“http://schemas.microsoft.com/developer/vsx-schema/2011”中的“Identity”。。 ShaderlabVS

有人知道Lex数据怎么更新吗

我做了个fork,可以编译出来2019可用的插件了,但是没搞明白怎么用他的lex工具更新最新的语法文件,有人知道怎么用吗?

Name matching should be case sensitive

Right now it's ignoring the case of words but in reality all of them are case sentive, "Color" is not the same as "color" so something like this:

struct vertexInput { float4 color : Color; }

will mark both the variable name and the semantic color as being a keyword.

Is there any easy way to deactivate this behavior? I tried compiling everything changing the "IgnoreCase" comparisons but doing so make the extension to stop highlighting altogether.

智能提示bug

出现智能提示后,每过一秒钟都会自动回到第一项,很难选中下面的其他选项。

unity 2018 后 mvp矩阵有所封装新的api不能提示了

1、unity 2018 不能用mul去转化MVP会被引擎自动改为UnityObjectToClipPos,但是UnityObjectToClipPos没有智能提示。
2、unity_ObjectToWorld 这些也是2018被修改了。
请问能更新支持2018的这些api吗没有智能提示?谢谢

配色问题

vss2015深色主题配色有点奇怪, 是本身就设置成这样的吗.

Have a optional - Ctrl + K +D ?

Hi, you can add feature like Ctrl + K + D same NShader, because i add NShader plugin, your extension not work, your extension are awesome !
Thank you so much for that !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.