DpdtInject icon indicating copy to clipboard operation
DpdtInject copied to clipboard

check for using a correct intendation during addition of a new binding clause

Open lsoft opened this issue 3 years ago • 0 comments

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);

lsoft avatar Jan 06 '22 19:01 lsoft