How to indent F# code in Visual Studio 2008 in #light mode - visual-studio

Is pressing spacebar only way to indent for F# in #light mode?
This seems like a serious hindrance while using #light mode.
Is there a better way than keep on pressing space bar in VS 2008?
[Answer] by Brian (answer)
1. Go to Tools -> Options -> Text Editor -> F# -> Tabs
2. Select Insert Spaces

See here
http://www.pandamonial.com/2008/04/f-vs-option.html

Related

How to collapse/expand only regions by keyboard shortcut in Visual Studio 2017?

I've found Quick Launch has CollapseRegions and ExpandRegions which functionality is actually what I need.
But I would like it to be toggled by key in like Ctrl+M,J instead of using Quick Launch like Ctrl+Q > CollapseRegions > Enter.
Is there any way to do that?
In Visual Studio 2017 :
Go to Options -> Text Editor -> C# -> Advance -> activate 'Collapse #regions when collapsing to definitions'
Explicitly to collapse all using Ctrl+M+O and for expand use Ctrl+M+X.

edit autocomplete settings in visual studio 2010

Where can i change the settings of autocomplete / intelliSense in visual studio 2010?
- Suggestions list shows for every character typed, somewhat annoying.
- Spacebar(and a lot of other characters) is commiting suggestions.
to edit the auto-complete / intellisense settings in visual studio 2010.
go to Tools -> Options... -> TextEditor -> C# -> IntelliSense
Default settings will always show a suggestion list for every character you type, and pressing spacebar (as well as a lot of other stupid characters) will always "commit" the current selected suggestion. Turn that dumb stuff off. Ofcourse you want the Enter key as the "commit" action, to do that just remove all characters and uncheck "Commited by pressing the spacebar".
http://msdn.microsoft.com/en-us/library/vstudio/fcf2zk43(v=vs.100).aspx
Tools -> Options -> Text Editor -> C# -> IntelliSense

f# interactive won't tab complete in VS2010

I'm not sure what I'm doing wrong here (I'm new to both F# and VS) but I can't get the tab completion to work in F# Interactive.
I have --readline enabled in Tools
-> Options -> F# Tools -> F# Interactive
fsi.exe --readline
from cmd does work
I'm on Win7 professional and I'm running a trial version of Visual Studio 2010 Professional. Any ideas?
VS F# Interactive Shell is just a normal text editor which enables us to write input to fsi.exe and display the output of it. Being a text editor, it will handles tab key like others do. You are not doing wrong. The feature is not just there.

How does one set Visual Studio 2010 keyboard shortcuts comfortably, especially when using ReSharper?

In every Visual Studio.NET version you can set keyboard shortcuts using menu Tools -> Options -> Environment -> Keyboard and then find the command you want to assign a shortcut to by entering part of it in "Show commands containing".
For one thing, the listbox is ridiculously short and hard to navigate - is there an alternative?
Then, how do I find out the correct command name for a specific action?
Specifically, I'm using ReSharper 5.1 with Visual Studio 2010 and want to have the Alt + Enter shortcut back (it used to be there in older versions by default) that opens the ReSharper context menu when the cursor is over a curly underline ReSharper uses to highlight errors or warnings.
How do I find out the command name for that (except by an educated guess)?
The way I do this is to perform an action while recording a macro (using Tools / Macro / Record temporary macro).
When I have finished with the action, I look at the source code of the macro and it usually helps to find the correct command.
For example, I have just let R# add some magic through Alt-Enter, and the macro recorder has:
DTE.ExecuteCommand("ReSharper_QuickFix")
You can rebind all of the ReSharper shortcuts by using the ReSharper -> Options -> Visual Studio Integration page. Select a keyboard scheme and hit "Apply Scheme".

Resharper 5 shortcuts & keyboard schemes

I am used to Finding Usages by hitting Shift-F12, but after switch to R# 5 on vs 2010 that one isn't obviously available.
I've got the keyboard scheme set to Visual Studio, as opposed to the only other choice which is R# v2/IntelliJ (the shortcut for usages in that scheme is Alt-F7).
Can anyone help me get back to Shift F12 through a R# setting?
Cheers,
Berryl
EDIT
I can use VS to set any keyboard command I want , of course. BUT in light of other buggy R# 5.0 behavior I am wondering why the old shortcut isn't there anymore.
Can't you update the VS keyboard mapping?
In VS
Tools -> Options -> Keyboard -> Search for command "ReSharper.FindUsages"

Resources