How to use Visual Studio Resharper shortcut keys(Alt+Enter) to introduce and initialize private fields?












0














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:
enter image description here



expected situation:
enter image description here



As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
enter image description here










share|improve this question



























    0














    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:
    enter image description here



    expected situation:
    enter image description here



    As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
    enter image description here










    share|improve this question

























      0












      0








      0







      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:
      enter image description here



      expected situation:
      enter image description here



      As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
      enter image description here










      share|improve this question













      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:
      enter image description here



      expected situation:
      enter image description here



      As a result, I can not reach the following target by just pressing alt+enter but by manually typing word by word…
      enter image description here







      c# visual-studio resharper






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 at 2:59









      Hua-Ming Huang

      327




      327
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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:




          1. Go to Tools | Options | Environment | Keyboard, search for ReSharper_AltEnter and assign the Alt+Enter shortcut to this command. This should make ReSharper's popup avaialble via Alt+Enter and Visual Studio's popup available by its traditional shortcut, Ctrl+..

          2. 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.






          share|improve this answer





















            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            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:




            1. Go to Tools | Options | Environment | Keyboard, search for ReSharper_AltEnter and assign the Alt+Enter shortcut to this command. This should make ReSharper's popup avaialble via Alt+Enter and Visual Studio's popup available by its traditional shortcut, Ctrl+..

            2. 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.






            share|improve this answer


























              0














              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:




              1. Go to Tools | Options | Environment | Keyboard, search for ReSharper_AltEnter and assign the Alt+Enter shortcut to this command. This should make ReSharper's popup avaialble via Alt+Enter and Visual Studio's popup available by its traditional shortcut, Ctrl+..

              2. 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.






              share|improve this answer
























                0












                0








                0






                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:




                1. Go to Tools | Options | Environment | Keyboard, search for ReSharper_AltEnter and assign the Alt+Enter shortcut to this command. This should make ReSharper's popup avaialble via Alt+Enter and Visual Studio's popup available by its traditional shortcut, Ctrl+..

                2. 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.






                share|improve this answer












                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:




                1. Go to Tools | Options | Environment | Keyboard, search for ReSharper_AltEnter and assign the Alt+Enter shortcut to this command. This should make ReSharper's popup avaialble via Alt+Enter and Visual Studio's popup available by its traditional shortcut, Ctrl+..

                2. 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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 at 9:19









                Jura Gorohovsky

                8,8593136




                8,8593136






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                    Alcedinidae

                    Can an atomic nucleus contain both particles and antiparticles? [duplicate]