IntelliJ IDEA method name indentation











up vote
2
down vote

favorite












Consider I have a verbose method declaration, so I want to wrap method name so line with method declaration is not too long:



private Map<VeryLongClassName, VeryLongClassName>
veryLongMethodName(...


IDEA's autoformatting does not indent method name relatively to class members:



 private Map<VeryLongClassName, VeryLongClassName>
veryLongMethodName(...


I however want it to be indented like in the first code snippet.



Is there a way to achieve this?










share|improve this question




























    up vote
    2
    down vote

    favorite












    Consider I have a verbose method declaration, so I want to wrap method name so line with method declaration is not too long:



    private Map<VeryLongClassName, VeryLongClassName>
    veryLongMethodName(...


    IDEA's autoformatting does not indent method name relatively to class members:



     private Map<VeryLongClassName, VeryLongClassName>
    veryLongMethodName(...


    I however want it to be indented like in the first code snippet.



    Is there a way to achieve this?










    share|improve this question


























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Consider I have a verbose method declaration, so I want to wrap method name so line with method declaration is not too long:



      private Map<VeryLongClassName, VeryLongClassName>
      veryLongMethodName(...


      IDEA's autoformatting does not indent method name relatively to class members:



       private Map<VeryLongClassName, VeryLongClassName>
      veryLongMethodName(...


      I however want it to be indented like in the first code snippet.



      Is there a way to achieve this?










      share|improve this question















      Consider I have a verbose method declaration, so I want to wrap method name so line with method declaration is not too long:



      private Map<VeryLongClassName, VeryLongClassName>
      veryLongMethodName(...


      IDEA's autoformatting does not indent method name relatively to class members:



       private Map<VeryLongClassName, VeryLongClassName>
      veryLongMethodName(...


      I however want it to be indented like in the first code snippet.



      Is there a way to achieve this?







      java intellij-idea






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 10:50

























      asked Nov 9 at 9:15









      alxg2112

      208210




      208210
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          No such option yet. You can follow and vote for this feature request: IDEA-185677, which is titled "An option to apply continuation indent to method name" and describes what you want.






          share|improve this answer























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
            – Nico Haase
            Nov 9 at 12:26











          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',
          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%2f53222820%2fintellij-idea-method-name-indentation%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








          up vote
          1
          down vote



          accepted










          No such option yet. You can follow and vote for this feature request: IDEA-185677, which is titled "An option to apply continuation indent to method name" and describes what you want.






          share|improve this answer























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
            – Nico Haase
            Nov 9 at 12:26















          up vote
          1
          down vote



          accepted










          No such option yet. You can follow and vote for this feature request: IDEA-185677, which is titled "An option to apply continuation indent to method name" and describes what you want.






          share|improve this answer























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
            – Nico Haase
            Nov 9 at 12:26













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          No such option yet. You can follow and vote for this feature request: IDEA-185677, which is titled "An option to apply continuation indent to method name" and describes what you want.






          share|improve this answer














          No such option yet. You can follow and vote for this feature request: IDEA-185677, which is titled "An option to apply continuation indent to method name" and describes what you want.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 11 at 1:18









          Ted M. Young

          710716




          710716










          answered Nov 9 at 11:20









          Andrey

          3,3011461




          3,3011461












          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
            – Nico Haase
            Nov 9 at 12:26


















          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
            – Nico Haase
            Nov 9 at 12:26
















          While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
          – Nico Haase
          Nov 9 at 12:26




          While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
          – Nico Haase
          Nov 9 at 12:26


















          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%2f53222820%2fintellij-idea-method-name-indentation%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







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()