Skip to content

Instantly share code, notes, and snippets.

@MadhurG-Hexaware
MadhurG-Hexaware / code-editor-rules.md
Created January 28, 2025 13:26 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
# Use Ubuntu 22.04 as the base image \
FROM ubuntu:22.04
# Install any necessary packages or dependencies here \
# For example, if your Unity server requires certain libraries or tools, you can install them using apt-get. \
RUN apt-get update && \
apt-get install -y libglu1 xvfb libxcursor1 ca-certificates && \
update-ca-certificates && \
apt-get clean
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Gist importer.
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityToolbarExtender;
/// <summary>
@MadhurG-Hexaware
MadhurG-Hexaware / Signal Attribute
Created April 20, 2023 11:55
Signal Attribute for Editor
using System;
using System.Collections.Generic;
using UnityEngine;
using Supyrb;
public class SignalSelectorAttribute : PropertyAttribute
{
private List<SerializableSystemType> signalTypes = new List<SerializableSystemType>();
// 82-Signals__Singals No Param-SignalTemplate.cs.txt
using Supyrb;
public class #SCRIPTNAME# : Signal
{
// Override invoke to make sure that the derived signal class shows up in the stacktrace
protected override void Invoke(int index)
{
base.Invoke(index);
# Text based files
* text=auto
*.cs diff=csharp text
*.cginc text
*.shader text
# Unity files
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.physicsMaterial2D merge=unityyamlmerge eol=lf
# This .gitignore file should be placed at the root of your Unity project directory
#
# original source from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/