I have a friend using JetBrains Rider and when he uses Jump To Definition (F12) he can see the method signature and implementation! I tried installing Rider but it is not yet supported on my ARM64 Mac. Is there anyway I can view Unity method implementations using VSCode or VSCode Insiders?
For example, if I have the following call, I click Translate
transform.Translate(Vector3.forward * Time.deltaTime * zSpeed);
Then I press F12, which opens Transform.cs
but only shows the method headers. The implementations are missing
// Summary:
// Moves the transform by x along the x axis, y along the y axis, and z along the
// z axis.
//
// Parameters:
// x:
//
// y:
//
// z:
//
// relativeTo:
public void Translate(float x, float y, float z);
// comments removed for brevity...
public void Translate(float x, float y, float z, [DefaultValue("Space.Self")] Space relativeTo);
// comments removed for brevity...
public void Translate(Vector3 translation);
// comments removed for brevity...
public void Translate(Vector3 translation, [DefaultValue("Space.Self")] Space relativeTo);
// comments removed for brevity...
public void Translate(float x, float y, float z, Transform relativeTo);
// comments removed for brevity...
public void Translate(Vector3 translation, Transform relativeTo);
Any help is greatly appreciated!
Per a comment, I tried Cmd+F12
But then it says "no implementation found"
I'm stuck!
question from:
https://stackoverflow.com/questions/65835426/how-to-view-unity-method-implementations-in-vscode-jump-to-definition 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…