visual-studio-power-tools

OpenXml - iterate through a paragraph's runs and find if a run has italic or bold text

牧云@^-^@ 提交于 2019-12-07 13:23:27
问题 I am trying to iterate through paragraph runs, find if a run has italized/bold text and replace that text with something else. Which is the best method in terms of performance. 回答1: If you are interested only in inline tags, the following code can help. Just change the Convert() method to whatever you want. using System.Linq; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Wordprocessing; class Program { static void Main(string[] args) { using (var doc =

TypeScript 1.3 for Visual Studio 2013 missing SDK directory (tsc.exe)

岁酱吖の 提交于 2019-12-05 22:43:16
问题 Typescript v1.3 was announced today, so I installed the power tools update for VS2013. After installation I can see that Visual Studio now knows about "protected" keyword and tuple types, which is great! But then I changed the TypeScriptToolsVersion attribute in my *.csproj file from 1.1 to 1.3: <TypeScriptToolsVersion>1.3</TypeScriptToolsVersion> After doing this, I get the following error when building: The specified task executable location "C:\Program Files (x86)\Microsoft SDKs\TypeScript

Curly braces autocomplete in Visual Studio 2012

柔情痞子 提交于 2019-11-29 02:25:06
问题 Just migrated from vs10 to vs12 and it seems like the curly braces is completely broken along side with some other features like indentation in C# (?) for example type: public static void myFunc() { In visual studio 10 it would automatically add the closing curly brace for it. Is there some power tool or something that can fix this and give the same behavior? the Brace Completer requires to hit Enter after the function for it to add the closing braces. Also in tools->options->text-editor->c#-