Change where ReSharper add using statements [duplicate] - visual-studio

This question already has answers here:
Visual Studio or Resharper functionality for placement of using directives
(7 answers)
Closed 4 years ago.
When I use the "Add missing reference" feature of ReSharper Ultimate 2017.3 on VS2017, it adds the using statements at the top of the file, above the namespace. In my company we have these under the namespace, so I have to manually move them every time.

Use ReSharper → Options → Code Editing → C# → Code Style → Add 'using' directives to deepest scope

Related

can I set more then one keyboard cursor in Visual Studio like in JetBrains's IDE's? [duplicate]

This question already has answers here:
How to Edit multiple lines in Visual studio 2017 at once
(9 answers)
Closed 1 year ago.
I'm trying to set some shortcuts in VS IDE but I used to write code in jetBrains IDE's (e.g. CLion, IJ, PC) which allow to write in several places simultaneously.
is it possible to do the same in VS?
thanks to #phuzi comment. How to Edit multiple lines in Visual studio 2017 at once
to set more then one keyboard cursor in VS default setting just press Shift+Alt and press several places with left mouse click or just Alt and drag left mouse key to mark rectangle.
you can't edit nons following lines like in CLion for example.

How to automatically sort and remove unused imports in Visual Studio? [duplicate]

This question already has answers here:
What keyboard shortcut is there to organize C# usings in Visual Studio?
(3 answers)
Closed 3 years ago.
When types are removed and their using statements linger how can I quickly reorganize my using statements and remove dead ones?
Use the Hotkey combination:
Ctrl+R, Ctrl+G

Arrange Code in Visual Studio [duplicate]

This question already has answers here:
Is there a Visual Studio 2010 extension to sort methods?
(5 answers)
Closed 7 years ago.
Is there a way to arrange the code in Visual Studio automatically (built-in functionality or an extension)?
By arrange, I don't mean format, which I know of. I mean to place private fields, public properties, constructors, private/public methods in a certain manner automatically. I've developed an application, but I had longer pauses in development, resulting in not-uniformed code style throughout the project. Is there a way to automate the process of rearranging it to comply to a certain style or do I have to do it all manually?
I use CodeMaid from Visual Studio Extension Gallery. It has a feature where you reorganize the current file by right clicking inside the editor then in the context menu click on Reorganize. It will organize the file by accessibility.
http://www.codemaid.net/
The features are listed on their homepage.

How to undo 'exclude from project' in Visual Studio 2008 [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Undo VS 'Exclude from project'?
I mistakenly chose the Exclude From Project menu item thinking I could choose what to exclude but it excluded the currently opened file.
I did not notice what file that was and there is no undo enabled.
How can I undo this operation? How can I detect what file was excluded? Is there some kind of log file?
Choose "Add > Existing Item..." then add the files you have excluded

Is there a list of Visual Studio environment variables? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Link to all Visual Studio $ variables
Visual Studio has a lot of environment variables like $(TargetFileName) but I can't seem to find a list of all of them on MSDN or via Google.
Does such a list exist?
NOTE: See the top answer for the duplicate question (link above) for a link to a list on MSDN.
In most places where you can use those, there's a "Macros" button or similar, which shows all available macros and the current value of them. For example, go to the PostBuild event editor to find the list.
Edit: I just checked. There's a list in MSDN.
You can get the list of available environment variables directly within Visual Studio 2010 with the following steps:
in Visual Studio env, right click on your project
properties
configuration properties / C++ / General
for ex. go into Additional Include directories
'dropdown' Edit
Macros
There you will find a complete list of available macros with their values set according to your settings. This can be very useful when debugging or selecting the right macro for your project settings.

Resources