DpdtInject
DpdtInject copied to clipboard
check for using a correct intendation during addition of a new binding clause
intendation can be taken something like the following:
var textManager = (IVsTextManager)packageServiceProvider.GetRequiredService(typeof(SVsTextManager));
textManager.GetActiveView(1, null, out IVsTextView currentView);
var model = (IComponentModel)packageServiceProvider.GetService(typeof(SComponentModel));
var editorAdapters = model.GetService<IVsEditorAdaptersFactoryService>();
var textView = editorAdapters.GetWpfTextView(currentView);
var indentSz = textView.Options.GetOptionValue(DefaultOptions.IndentSizeOptionId);