What does Ctrl + S + S do on Xamarin Android.axml files in Visual Studio?
This is my original .axml file .
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView android:id="@+id/List"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000"
/>
</LinearLayout>
I saved it and pressed Ctrl+S
it as usual, but then accidentally hit S
it without letting go Ctrl
, so hit it effectively Ctrl+S+S
. This resulted in the following code formatting:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/List"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000" />
</LinearLayout>
Note that this again differs from the shortcut Ctrl+E+D
I'm used to, which results in code formatting differently according to below.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/List"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000" />
</LinearLayout>
My question is, what exactly did I do? Which function or macro did I accidentally call? I tested this keyboard shortcut in a regular .cs file as well as an .xml file and this keyboard shortcut does nothing there. I quickly went through Tools -> Options -> Keyboard , but there is too much noise and I cannot filter it intelligently (as far as I know). Anyway, I have not previously changed anything in this VS instance, and I have not had anything like ReSharper.
source to share
No one has answered this question yet
Check out similar questions: