Are there any tools that will let me see what the XPath expression is of a given node in an html document? Im using Visual Studio 2017 and Notepad++ 7.7
Related
Is there any help to find out, which option to use (Tools- Optoions- Environment- Fonts and Colors) for changing the background highlight of matching code elements like if/else in the example.
The question is about visual studio and not about visual studio code.
I want to extract comments from code files in a Visual Studio extension. Is there a way to do it using Visual Studio Automation without having to parse code text myself?
PS: Roslyn is not a choice, because I'm not restricted to C# and VB.NET only.
Various code elements like CodeClass and CodeFunction have the Comment property that return the header comment, accessible using Visual Studio code model.
And if a document is opened in VS editor, you can check SnapshotSpan classifications for PredefinedClassificationTypeNames.Comment.
In our team we are using TSLint with "jsx-curly-spacing": [ true, "always" ]. Half our team uses VS Code and when they use Code Formatting they have this done automatically. However if i press
Ctrl+E, Ctrl+D to format the entire document the spacing is removed.
How I would like it to be:
<div className={ classes.root }>
How it turns out:
<div className={classes.root}>
I have looked at the settings but I can't find any for brackets.
I'm using the new Visual Studio Enterprise 2017 15.5.3.
VS Code has this automatically it seems and they can toggle it using these settings:
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
VS Code - Code Formatting space before curly braces
Not a complete fix but it could be something. Since we are using TSLint and have TypeScript Analyzer installed I can right click the project or a single file/folder and then select Fix TypeScript Analyzer Errors If Possible. This solved my problem but it is an extra step.
https://marketplace.visualstudio.com/items?itemName=RichNewman.TypeScriptAnalyzer
I also added a feature request to Visual Studio for this.
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/32878903-code-formatting-typescript-and-javascript-spac
Using Visual Studio Code, how can I get # to be auto replaced with #{} in Ruby double quoted strings.
An 'autocorrect' function would do this but I don't think this is available in VS Code.
Other editors - Sublime, Atom, IntellIJ seem to have this 'out of the box'
There is a Visual Studio Code extension called 'Auto Add Brackets in String Interpolation' by 'Ali Ariff'. It provides the required functionality.
The extension is available at: https://marketplace.visualstudio.com/items?itemName=aliariff.auto-add-brackets
When I type "///" in the editor, Visual Studio creates an empty comment body with the < summary > and other tags. I can then type the "<" and VS suggests a list of recommended tags.
How can I make the IntelliSense to suggest my custom tags here?
Ideally, I would like to have my own XML documentation template expanded when I type "///"
Have a look at this.
It is primarily targeted at VS2005 en 2008, but it's probably still valid for 2010 with minor differences.
Documenting Your Code With XML Comments