Sync settings between CLion and ReSharper - resharper

I am used to CLion in the past, and now I want to try ReSharper. Can I sync the settings of Clion to ReSharper?
CLion can export settings into clion-settings.zip, but ReSharper expects to import from .DotSettings.
How to set ReSharper's settings by using the settings from CLion?

You can't, they are two different products. Some of their features may overlap with each other but their settings will be very different. You will need to configure ReSharper's settings to match your CLion ones manually.

Related

How to tell AndroidStudio to be less pedantic about native code

I am using AndroidStudio to build NDK based applications with C and C++ code.
The IDE goes overboard with warnings, like the one below:
How can I disable this and other gratuitous warnings from the IDE?
Is this done on a per-project base, or an IDE setting?
In any case, the deluge of warnings are not helping.
Ubuntu LTS
Android Studio 3.5
Native code built via gradle/cmake.
Release notes of Android Studio state:
Android Studio now includes support for static code analysis using
Clang-Tidy for projects that include native code. To enable support
for Clang-Tidy, update your NDK to r18 or higher. You can then enable
or re-enable the inspections by opening the Settings or Preferences
dialog and navigating to Editor > Inspections > C/C++ > General >
Clang-Tidy. When selecting this inspection in the Settings or
Preferences dialog, you can also see the list of Clang-Tidy checks
that are enabled and disabled under the Option section of the
right-most panel.
To disable the warnings just go to:
Preferences->Editor->Inspections->C/C++->General->Clang-tidy
and uncheck Clang-tidy or edit the list of checks to disable those that annoy you.

StyleCop by Resharper Plugin - How to enable only for 1 solution

We have a VS solution which has StyleCop configured.
Because I do use ReSharper I wanted my scaffolding to work alongside stylecop. Fortunately there is a plugin named "StyleCop by Resharper Plugin".
After installing "StyleCop by Resharper Plugin" every VS solution that I open will be proofchecked according to "some" stylecop rules.
For me this is confusing as only one solution has Stylecop.settings file, and the analyzers package installed.
How to make stylecop proofcheck only the configured solution.
P.S. I don't want to include ignores in all my solutions because of one project using stylecop.
If you are using Visual Studio 2015 or 2017 then you could use the StyleCop.Analyzers NuGet package that will use the Roslyn analyzers. This can then be applied per project.

How to save and restore Android Studio user interface settings?

Android Studio allows the user to customize certain features, such as editor settings and coding styles. On Windows boxes, the default folder for these settings appears to be C:\Users\{username}\.AndroidStudio{version}\config. I'm looking for documentation for these files so that we can decide which files should be under version control.
The goals are: 1) to have consistent UI settings for a group of developers; and 2) to have an easy way to configure a new Android Studio install.
So far, the following files look interesting:
...\config\templates\user.xml User-defined code templates
...\config\options\editor.codeinsight.xml Editor settings & code insight
...\config\options\editor.xml Editor settings
...\config\options\cachedDictionary.xml User additions to spelling dictionary.
...\config\codestyles\Default_1_.xml Code formatting
You can go file > Export settings then you get to choose exactly the settings to export and you get a single settings.jar file.
The reverse process is file > Import Settings > choose settings.jar
It seems that the user interface has changed since the last answer.
Now as of Android Studio 4.2 Bata 1 on Windows
You have to go to File -> Manage IDE Settings -> Export Setting to see the same window.
If you can't find the File > Import Settings menu, try accessing File -> Manage IDE Settings -> Export Setting.
There may be differences on the version or operating system.
On Android Studio 3 on Mac, it was configure > Export settings, resulting in a settings.zip file.
Because this is so badly implemented, in case you selected some custom folder and now the export button is disabled: you also need to manually specify a _name_.zip, the Android Studio is incapable of doing it itself, ex: x:\settings.zip
It might be obvious, but it did gave me a small headache this morning.

Temporarily disable StyleCop warnings on ReSharper 6

I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic!
However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on.
Is there any way of doing this? I can't seem to find it on the ReSharper menu (options, etc).
You can use different Settings.Stylecop settings for each project, just create one that ignores all the rules. Right click on a project and select Stylecop settings to modify them.
I think you can also disable plugins by unticking them from ReSharper->Plugins... (in version 5.1, not sure if it's the same in 6.0)

Get Resharper to Consume StyleCop configuration

Our project already has a StyleCop configuration. I am using ReSharper and I would like to be able to have R# use the StyleCop settings.
I know that you can use StyleCopForResharper to build the settings in Resharper and export them as a StyleCop configuration, but can you do the reverse and have Resharper consume the existing StyleCop config?
I am not sure is this post still actual. There is free StyleCop for ReSharper at CodePlex.
It uses StyleCop assembly so it will use project file settings.
I don't know of any way to do this, but it is possible for R# to layout your members/properties/methods etc. to comply with StyleCop. Check out my blog post at http://stevedunns.blogspot.com/2009/03/halt-this-is-stylecop-you-are-in.html.
HTH.
Steve

Resources