IVsContainedLanguageHost::CanReformatCode Method (Int32)
Visual Studio 2015
Determines if code reformatting is currently allowed.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Parameters
- pfCanReformat
-
Type:
System::Int32
[out] Returns nonzero (TRUE) if the code can be reformatted; otherwise, returns zero (FALSE).
From singlefileeditor.idl:
HRESULT CanReformatCode( [out] BOOL* pfCanReformat );
This method is used to handle situations where the code language may want to reformat the code but the editor is still busy on other tasks that could interfere with the reformatting.
Show: