How to use Visual Studio Resharper shortcut keys(Alt+Enter) to introduce and initialize private fields?
up vote
0
down vote
favorite
I want to use the VS ReSharper shortcut keys(Alt+Enter) to speed up the initialization of a private fields "_codeInspector" after typing the following code:
namespace Test
{
public class CodingAssistance
{
public CodingAssistance(CodeInspector codeInspector)
public class CodeInspector
{ }
}
}
However, as I pressed Alt+Enter, there was no option called "Introduce and initialize field _codeInspector" as expected.
my situation:
expected situation:
As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
c# visual-studio resharper
add a comment |
up vote
0
down vote
favorite
I want to use the VS ReSharper shortcut keys(Alt+Enter) to speed up the initialization of a private fields "_codeInspector" after typing the following code:
namespace Test
{
public class CodingAssistance
{
public CodingAssistance(CodeInspector codeInspector)
public class CodeInspector
{ }
}
}
However, as I pressed Alt+Enter, there was no option called "Introduce and initialize field _codeInspector" as expected.
my situation:
expected situation:
As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
c# visual-studio resharper
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to use the VS ReSharper shortcut keys(Alt+Enter) to speed up the initialization of a private fields "_codeInspector" after typing the following code:
namespace Test
{
public class CodingAssistance
{
public CodingAssistance(CodeInspector codeInspector)
public class CodeInspector
{ }
}
}
However, as I pressed Alt+Enter, there was no option called "Introduce and initialize field _codeInspector" as expected.
my situation:
expected situation:
As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
c# visual-studio resharper
I want to use the VS ReSharper shortcut keys(Alt+Enter) to speed up the initialization of a private fields "_codeInspector" after typing the following code:
namespace Test
{
public class CodingAssistance
{
public CodingAssistance(CodeInspector codeInspector)
public class CodeInspector
{ }
}
}
However, as I pressed Alt+Enter, there was no option called "Introduce and initialize field _codeInspector" as expected.
my situation:
expected situation:
As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
c# visual-studio resharper
c# visual-studio resharper
asked Nov 20 at 2:59
Hua-Ming Huang
327
327
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
By the looks of your Alt+Enter
popup, the shortcut is probably assigned to Visual Studio's own command (View.QuickActions
, I believe). What you can do is change Visual Studio settings to display ReSharper's Alt+Enter
popup and (optionally) have it contain both ReSharper's quick-fixes and context actions and Visual Studio's quick actions and refactorings. You can do one of the following:
- Go to Tools | Options | Environment | Keyboard, search for
ReSharper_AltEnter
and assign theAlt+Enter
shortcut to this command. This should make ReSharper's popup avaialble viaAlt+Enter
and Visual Studio's popup available by its traditional shortcut,Ctrl+.
. - Go to ReSharper | Options | Code Inspection | Settings and select Do not show Visual Studio bulb (VS actions will be merged into ReSharper bulb). This should make both ReSharper's and Visual Studio's commands available via ReSharper's popup. This setting can have performance implications, and if you're not comfortable with Visual Studio responsiveness, go with option (1) instead.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
By the looks of your Alt+Enter
popup, the shortcut is probably assigned to Visual Studio's own command (View.QuickActions
, I believe). What you can do is change Visual Studio settings to display ReSharper's Alt+Enter
popup and (optionally) have it contain both ReSharper's quick-fixes and context actions and Visual Studio's quick actions and refactorings. You can do one of the following:
- Go to Tools | Options | Environment | Keyboard, search for
ReSharper_AltEnter
and assign theAlt+Enter
shortcut to this command. This should make ReSharper's popup avaialble viaAlt+Enter
and Visual Studio's popup available by its traditional shortcut,Ctrl+.
. - Go to ReSharper | Options | Code Inspection | Settings and select Do not show Visual Studio bulb (VS actions will be merged into ReSharper bulb). This should make both ReSharper's and Visual Studio's commands available via ReSharper's popup. This setting can have performance implications, and if you're not comfortable with Visual Studio responsiveness, go with option (1) instead.
add a comment |
up vote
0
down vote
By the looks of your Alt+Enter
popup, the shortcut is probably assigned to Visual Studio's own command (View.QuickActions
, I believe). What you can do is change Visual Studio settings to display ReSharper's Alt+Enter
popup and (optionally) have it contain both ReSharper's quick-fixes and context actions and Visual Studio's quick actions and refactorings. You can do one of the following:
- Go to Tools | Options | Environment | Keyboard, search for
ReSharper_AltEnter
and assign theAlt+Enter
shortcut to this command. This should make ReSharper's popup avaialble viaAlt+Enter
and Visual Studio's popup available by its traditional shortcut,Ctrl+.
. - Go to ReSharper | Options | Code Inspection | Settings and select Do not show Visual Studio bulb (VS actions will be merged into ReSharper bulb). This should make both ReSharper's and Visual Studio's commands available via ReSharper's popup. This setting can have performance implications, and if you're not comfortable with Visual Studio responsiveness, go with option (1) instead.
add a comment |
up vote
0
down vote
up vote
0
down vote
By the looks of your Alt+Enter
popup, the shortcut is probably assigned to Visual Studio's own command (View.QuickActions
, I believe). What you can do is change Visual Studio settings to display ReSharper's Alt+Enter
popup and (optionally) have it contain both ReSharper's quick-fixes and context actions and Visual Studio's quick actions and refactorings. You can do one of the following:
- Go to Tools | Options | Environment | Keyboard, search for
ReSharper_AltEnter
and assign theAlt+Enter
shortcut to this command. This should make ReSharper's popup avaialble viaAlt+Enter
and Visual Studio's popup available by its traditional shortcut,Ctrl+.
. - Go to ReSharper | Options | Code Inspection | Settings and select Do not show Visual Studio bulb (VS actions will be merged into ReSharper bulb). This should make both ReSharper's and Visual Studio's commands available via ReSharper's popup. This setting can have performance implications, and if you're not comfortable with Visual Studio responsiveness, go with option (1) instead.
By the looks of your Alt+Enter
popup, the shortcut is probably assigned to Visual Studio's own command (View.QuickActions
, I believe). What you can do is change Visual Studio settings to display ReSharper's Alt+Enter
popup and (optionally) have it contain both ReSharper's quick-fixes and context actions and Visual Studio's quick actions and refactorings. You can do one of the following:
- Go to Tools | Options | Environment | Keyboard, search for
ReSharper_AltEnter
and assign theAlt+Enter
shortcut to this command. This should make ReSharper's popup avaialble viaAlt+Enter
and Visual Studio's popup available by its traditional shortcut,Ctrl+.
. - Go to ReSharper | Options | Code Inspection | Settings and select Do not show Visual Studio bulb (VS actions will be merged into ReSharper bulb). This should make both ReSharper's and Visual Studio's commands available via ReSharper's popup. This setting can have performance implications, and if you're not comfortable with Visual Studio responsiveness, go with option (1) instead.
answered Nov 20 at 9:19
Jura Gorohovsky
8,8493136
8,8493136
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53385579%2fhow-to-use-visual-studio-resharper-shortcut-keysaltenter-to-introduce-and-ini%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown