JetBrains / JetBrains/resharper-unity
Rider - Unity shader code completion doesn't work outside CGPROGRAM/ENDCG field
- 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.

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

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

Thanks a lot!
Contributor guide
Assessment
This issue has not been assessed yet.