Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Organize C# usings in Visual Studio 2019?

I assigned a keyboard shortcut for remove and sort usings but, I wanna know if it possible to organize usings on save or on format document?

like image 836
Ahmed Kamal Avatar asked Feb 23 '19 23:02

Ahmed Kamal


People also ask

What are the two main ways a file can be organized in C?

Writing to a file (fprintf or fputs)

What is file structure C?

A FILE is a type of structure typedef as FILE. It is considered as opaque data type as its implementation is hidden. We don't know what constitutes the type, we only use pointer to the type and library knows the internal of the type and can use the data. Definition of FILE is in stdio although it is system specific.


1 Answers

I'm using Power Commands extension to do that, as I used before on Visual Studio 2017 and it works very well.
After installing, in Tools -> Options you have a new Productivity Power Tools option that allows configuring to Format document on save and Remove and Sort Usings on save. PowerCommands options

like image 53
Dario Mendes Avatar answered Oct 05 '22 14:10

Dario Mendes