JetBrains / JetBrains/resharper-unity

Rider - Unity shader code completion doesn't work outside CGPROGRAM/ENDCG field

Open
#2,193 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Hi,
Just start using Rider for unity coding and pretty cool on C# coding, but when I try on shader, the code completion doesn't work outside the field of CGPROGRAM/ENDCG.

For instance, the Properties block, all the type of data can't be auto-completed.
image

And:
#pragma vertex vert / #pragma fragment frag
the "#pragma" can be recognized, but the "vertex" and "fragment" can't be.

image

I read the manual of Rider on the official site and I found the image on the manual shows this should be working.

is there any settings I didn't finish?

Here is the system info:
JetBrains Rider 2021.2.2
Build #RD-212.5284.64, built on October 9, 2021
Licensed to Rider Evaluator
Expiration date: November 8, 2021
Runtime version: 11.0.12+7-b1504.28 x86_64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
macOS 11.5.2
.NET 5.0.7
GC: G1 Young Generation, G1 Old Generation
Memory: 1500M

Unity: 2020.3 LTS, JetBrains Rider Editor : 3.0.7
image

Thanks a lot!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.