Xamarin auto-import shortcut
Asked Answered
E

1

12

In eclipse, it's ctrl+shift+o, which automaticly imports everything. But how can I do this in Xamarin? I don't remember every package and there aren't those lightbulbs, which are in Eclipse that would help me to "quick-fix" the problem.

So, is there any shortcut for auto-import everything or just some othere way how to auto-import stuff?

Edd answered 23/6, 2014 at 19:2 Comment(5)
Xamarin tends to model it's shortcuts after Visual Studio (f7 is build, F5 is debug, F9 insert breakpoint, ctrl-K -> ctrl-K inssert bookmark...)Procopius
Alt ⌥+Return doesn't workEdd
That's weird. I have a clean install right now.Edd
Sorry, but the point remains the same. Do I have to write all the using.. lines on my own?Edd
no dude, use Ctrl+., alt+Enter or something.Dobbin
S
19

If you select the proper context by moving the cursor to the line of code with the missing namespace and then press "Alt ⌥" + "Return ⏎" the refactor/quick fix dialog will show up. If the dialog does not appear validate your keybindings.

Dialog

enter image description here

Schug answered 23/6, 2014 at 19:36 Comment(2)
Sorry what is that Mac keybinding? I don't know how to read the ⌥ symbol, and its not on my keyboardDexedrine
upload.wikimedia.org/wikipedia/commons/3/35/AppleAlt.jpg it is the "option" or "alt" key mac.sillydog.org/archives/pic/option_key.jpgSchug

© 2022 - 2024 — McMap. All rights reserved.