Place snippet files to the snippet folder in addition to existing ones.
For example for vs 2022 it is:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC#\Snippets\1033\Visual C#\
void MyMethod()
{
throw new System.NotImplementedException();
}
public void Deconstruct()
{
}
yield return null;
fixed (void* ptr = value)
{
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Debug.Log();
[SerializeField]
[SerializeReference]
using UnityObject = UnityEngine.Object;
#if UNITY_EDITOR
#endif
#if UNITY_EDITOR || DEVELOPMENT_BUILD
#endif
#if UNITY_EDITOR
private void OnValidate()
{
ValidateData();
}
private void Reset()
{
ValidateData();
}
private void ValidateData()
{
}
#endif
[CustomEditor(typeof(ExampleClass))]
[CustomPropertyDrawer(typeof(CustomType))]
Used for InspectorButtonAttribute
from https://github.com/oleghcp/UnityTools
#if UNITY_EDITOR
[UnityEditor.CustomEditor(typeof(ExampleClass)), UnityEditor.CanEditMultipleObjects]
private class Editor : OlegHcpEditor.MethodButtonsEditor { }
#endif