Jetbrains Rider, how to disable text indenting within documentation comments (summary tags)? - rider

In Jetbrains Rider 2021.3x, after executing Code Clean Up, text in documentation comments are being indented. How can this be disabled? In the example below, rider inserts the text indents in the summary tag, want to prevent this:
/// <summary>
/// Why does Rider indent these comments? How can it be disabled?
/// Any idea of what settings!?
/// </summary>
public class Person{}
After Code Cleanup execution, the text should have no indents, like below:
/// <summary>
/// Why does Rider indent these comments? How can it be disabled?
/// Any idea of what settings!?
/// </summary>
public class Person{}
Just struggling to find the correct settings...

Go to File | Settings | Editor | Code Style | C# and open the tab XML documentation. There you should find the setting Indent inside element that contain text which you can set to No indent from parent element:

Related

How do you read command line arguments for the updated C++/WinRT/XAML UWP apps

I have not been able to find any documentation on how to process the command line arguments of a C++/WinRT, XAML app.
In Visual Studio 15.9.6 the application properties do provide a way to enter command line arguments during the development effort, but no way to process them.
For a Blank App (C++/WinRT) template, the App.cpp file has the following:
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
App::App()
{
...
}
wherein main() and WinMain() are mentioned.
I would expect to have some number of main() or WinMain() read arguments which would then be processed by the application.
There are several ways to get the command line arguments in a UWP XAML application. The natural way to get the command line is to override the Application::OnLaunched member, that gets passed a LaunchActivatedEventArgs argument. Its Arguments property holds the command line.
Alternatively, you can query the OS: GetCommandLineW returns the command line from anywhere inside the application. (Note, that CommandLineToArgvW to parse the command line into individual arguments is not available in a UWP application.)
If you do need the command line decomposed into individual arguments, you'll have to go with a Microsoft specific extension to its C Runtime implementation: __argc and __wargv provide the decomposed command line arguments the same way you would get them through a standard main entry point.

Intelij 2016.2.5 code formatting wraps annotations in the same line

I imported an Eclipse code style scheme to IJ 2016.2.5 community edition and it (wrongly) wraps annotations in the same line, e.g.
#Override public Integer create(List<EventDto> events) {
I went to Preferences → Editor → Code Style → Java → Wrapping and Braces tab and set Do not wrap after single annotation (as suggested by other answers such as) and it still fails. Furthermore, every entry related to annotations in this menu, is set to do not wrap. Can anyone help? Thanks
You should set the Method annotations parameter to Wrap always:

Showing hidden directories in Project Explorer view

My Eclipse RCP application includes the Project Explorer view, which by default hides all directories whose name starts with the dot (".") character.
Is it possible to customize the Project Explorer view so that these directories are no longer hidden?
EDIT: I would like to do this programmatically.
I found a way to do this by looking at the code behind the Customize View dialog (accessing the dialog is described here).
The INavigatorFilterService interface provides the activateFilterIdsAndUpdateViewer method, which allows callers to activate certain filters and deactivate all others. The org.eclipse.ui.navigator.resources plugin defines the org.eclipse.ui.navigator.resources.filters.startsWithDot filter, which is used to remove all files and directories whose name starts with a dot character from the Project Explorer view.
The following code snippet can be used:
ProjectExplorer projectExpl = ... // get project explorer
INavigatorContentService contentServ = projectExpl.getNavigatorContentService();
INavigatorFilterService filterServ = contentServ.getFilterService();
String[] enabledFilters = new String[0]; // this will clear all filters
filterServ.activateFilterIdsAndUpdateViewer(enabledFilters);

Autogenerating XML comments in Vb.Net

I have recently moved over to coding from c#.net in vb.net
In c# i could hit /// above any class/method and Visual Studio would automaticly generate the xml comments body for me.
Example
/// <summary>
///
/// </summary>
/// <param name="bar"></param>
void foo(string bar)
{
}
How do I get this same behaviour in my vb.net project
I have tried ''' and enter or space but it does nothing.
I'm using the same IDE for both projects
You need to set "Generate XML documentation file" in Project menu, click Properties, Compile page. Then entering ''' will work.
simply press ' button 3 times ie '''
As I read this and wondered why it didn't work for me as the above explained was already checked for C#.
What I didn't realize is that this seems to work for Visual Basic as well. I unchecked that options and rechecked it and it worked.
If you install any plug in's that may allow snippets or code function automation may effect this as I have Code Rush installed for VB refactoring and it might have overrode my settings but it is fixed now.

Visual Web Developer 2010 - VB.Net xml comment shortcut

Hopefully a question with a very quick and simple answer; In previous versions of Visual Studio and Visual Web Developer I've been able to type 3 apostrophe's (i.e ''') on the line before a function that results in the auto generated comment like:
''' <summary>
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Doing this in 2010 doesn't seem to have the same effect, I've tried hunting on Google but with no joy, is this shortcut still available? Has it Changed to something else?
Thanks,
Steve
I just had the case where this didn't work for me in VS2010 in VB either. My problem was that in the project properties, on the Compile tab. 'Generate XML documentation file' was unchecked. I checked it and now the auto comment tags work again.
Not sure if that shortcut still exists, but the next best thing would be to create a custom shortcut that achieves the same purpose.
http://msdn.microsoft.com/en-us/library/5zwses53.aspx
The link also details how to import shortcuts, not sure if its backwards compatible, but it might be worth giving a go by pointing it at whatever previous version you used.