Page Comparison - Working with documents, project files and text views (v.7 vs v.8)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Project Model

ReSharper API for Visual Studio project model resides in JetBrains.ReSharper.ProjectModel namespace.

...

Note

All read access to project model should be done under read lock.

Documents

ReSharper works with text of files through JetBrains.ReSharper.Editor.IDocument interface. This interface provides methods for reading and modifying text, and events that you can subscribe to if you want to listen to document changes.

...

You can also create document directly from text. Use JetBrains.ReSharper.Editor.DocumentFactory to do so. This document will not be associeated with any project file.

Modifying documents and project model

Under construction

References

JetBrains.ReSharper.ProjectModel.dll – Project Model APIs
JetBrains.ReSharper.DocumentModel.dll – IDocument and DocumentFactory
JetBrains.ReSharper.DocumentManager.dll – DocumentManager, linking project model and document model

Samples and power toys

Incoming Links
labels+sample
No samples