Is there any VS Code extension for Code explanation? - visual-studio-code

Is there any Visual Studio code extension for code explanation.
The default extension gives basics information only. But I want more information regarding syntax.
It'll be great if an extension can pull information from some wiki page like wikipedia, w3schools.
[Default syntax information]

Related

Is there a ReSharper or similar extension to Visual Studio Code?

I would like to know if there is some extension to VS Code that helps with cleaning code and suggesting more concise code (i.e., hinting for coding best practices).
There are a large number of ways to lint or provide code suggestions or refactoring tips in VSCode, some baked-in or improved with the C# extension.
But if I understand your question right, for something akin to an extension to suggest code simplification, like ReSharper, I would point you to the Roslynator extension. I have used Roslynator2022 (the Visual Studio 2022 version) and like how it links you out to see detailed reasons about the suggestions it makes.
For formatting your code the VSCode Marketplace has multiple good options such as the CSharpier extension.

Code analysis using visual studio extension

Is it possible to write an extension which will do code analysis? I looked at the api and I didnt see how I can get all variables that are declared in the document/xref on specific variable and get it flow in the code. If someone know api in visual studio code which actually helps with it, it will be great.
Creating such an extension is certainly possible, however you have to do your own language processing. AFAIK there's no way to access the internal structures (syntax tree, symbol table etc.) of the existing JS/TS (or other language for that matter) extensions.

Does the Visual Studio Team Services (VSTS) wiki support syntax highlighting?

Visual Studio Team Services has a Markdown-based project documentation feature in form of a wiki.
However I do not get the code formatting to work.
It looks like this:
but obviously it should look like this:
Is syntax highlighting not supported in Visual Studio Team Services or am I doing something wrong?
Make sure that you have a used the language identifier in Markdown Syntax as csharp does not seem to be recognized by default.
Check this document for Syntax guidance for Markdown files, widgets, wikis, and pull request comments.
Also, you may go through this blog.

How to change all occurrences of variable name in Visual Studio Code for PHP?

I have tried Ctrl + F12 but it does not really work. It does not select $this-> for some reasons. Does anyone here know, how to do it?
Thanks in advance
Currently, Visual Studio Code's support for PHP is limited (see here), and I was unable to locate a PHP language service extension for Visual Studio Code (you're welcome to look, too).
Visual Studio Code currently only comes bundled with language services for JavaScript and TypeScript.
According to Visual Studio Code's documentation, a language service is defined as follows:
Language services provide the code understanding necessary for features like IntelliSense (suggestions) and smart code navigation (Go to Definition, Find All References, Rename Symbol).
You can try the regular search and replace CTRL+SHIFT+H. VS Code provides preview for all planned replacements so it is done not that bad as you would expect.
This question is a bit old but, for anyone who stumbled upon here,
You could use PHP Refactor Tool extension: https://marketplace.visualstudio.com/items?itemName=st-pham.php-refactor-tool
note that this extension dependent on PHP intelephense: https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client

What is the best tool or technique to write doxygen code comments

Public c++ header files must be provided with a lot of comments. It is hard to format and wrap doxygen comments. Does some formatting tool exists?
With features like auto wrap lines on 80th character, easy visual function grouping. Ideally documentation writer prepares a documentation separately, then inject it into or link using doxytags with code.
At this time we are using notepad/IDE to document the code.
You don't say which IDE you're working with - If you're working in Visual Studio, then I've written an addin (AtomineerUtils) that might help you - It generates/updates XML, Doxygen or JavaDoc documentation comments in your source files, and can word wrap and format the comments for you, minimising the work you need to do to keep them tidy. It also keeps the comments in sync with the code (parameters, type-params, thrown exceptions, etc).
(It supports C, C++, C++/CLI, C#, Visual Basic and Java, in Visual Studio 2010, 2008, 2005).
Emacs + doxymacs works fine for me.