How to use Visual Studio Resharper shortcut keys(Alt+Enter) to introduce and initialize private fields?
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 |
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 |
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
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 |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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 |
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 |
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,8593136
8,8593136
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