- Download Assembly-CSharp.xml and UnityEngine.xml
- Place Assembly-CSharp.xml and UnityEngine.xml in the same place as the Assembly-CSharp.dll and UnityEngine.dll that you link to when building your KSP plugin (the KSP_Data/Managed folder).
- Restart Visual Studio.
Now when you use the Object Browser to examine the contents of Assembly-CSharp.dll you will find helpful comments for some classes. These comments will also show up through IntelliSense when writing code.
Probably you can use Assembly-CSharp.xml in MonoDevelop too but I don't use MonoDevelop so I don't know.
You can also check out this web version of the documentation, generated using Doxygen. Currently only classes that have at least some documentation appear in the web documentation.
To add new info on a class that already has some documentation:
- Fork this project
- Add your comments in the appropriate .cs file.
- Send me a pull request.
To add info on a new class:
- Highlight the class in the source code of your KSP plugin.
- Press F12. Visual Studio will create a fake source file for the class.
- Copy Visual Studio's uneditable source file into a new file you can edit.
- Add your comments to the fake source file.
- Fork this project.
- Add your new fake source file to your version of the project.
- Send me a pull request.