• Login
Community
  • Login

How to show "C" languag struct members?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 2 Posters 728 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Paolo Santini
    last edited by Feb 10, 2022, 10:27 AM

    Schermata del 2022-02-10 11-17-02.png
    Hi guys!!! Is there a way to show all the variable list inserted in a “C language " struct?
    See the picture (this is an example of Qt Creator, but the same behaviour is in Visual Basic and other editors).
    I’d found very easy to place the point (”.") after the struct name and its elements appear in a dropdown list.
    Is it possible to do this? Is there a plugin to do so?
    Thanks
    Paolo

    E 1 Reply Last reply Feb 10, 2022, 11:59 AM Reply Quote 0
    • E
      Ekopalypse @Paolo Santini
      last edited by Ekopalypse Feb 10, 2022, 11:59 AM Feb 10, 2022, 11:59 AM

      @paolo-santini

      this function must be adequately supported by the language you are working with, and I know of two projects to develop a plugin that uses the lsp protocol to do this.

      https://sourceforge.net/projects/kered13-notepad-plugins/files/
      and
      https://github.com/Ekopalypse/NppLspClient/releases

      P 1 Reply Last reply Feb 10, 2022, 12:31 PM Reply Quote 3
      • P
        Paolo Santini @Ekopalypse
        last edited by Feb 10, 2022, 12:31 PM

        @ekopalypse Thanks a lot!
        One more question: How can I installed it?
        I tried following online user manual as described in this page:
        https://npp-user-manual.org/docs/plugins/
        but something was wrong: my plugins didn’t appear in the list of selectable one.
        How to proceed further?
        Paolo

        E 1 Reply Last reply Feb 11, 2022, 9:26 AM Reply Quote 0
        • E
          Ekopalypse @Paolo Santini
          last edited by Ekopalypse Feb 11, 2022, 9:26 AM Feb 11, 2022, 9:26 AM

          @paolo-santini

          These plugins are not yet available via the plugin admin, as both projects are still in progress.
          Your only chance is to either build them yourself or use the pre-built versions from the respective code repositories.
          If you decide to use the pre-built versions, use the menu ‘Plugin->Open folder for plugins’ and

          in case of NppLspClient, unpack the plugin there and
          in case of NPP LSP create a directory with that name
          and put the dll into the newly create directory, make sure that the dll has also the name npp lsp.dll
          An unpacked plugin must have the following structure, for example.

          NPP_MAIN_DIR
            - plugins
              - PLUGIN_DIR
                - PLUGIN_DIR.dll
                - other files if needed
          

          Restart Npp.
          In the case of NppLspClient use the menu Plugins->NppLspClient->Open configuration file.
          and start configuring an LSP server for the language you are using,
          in case of ‘NPP LSP’ copy the ‘Notepad++ LSP.json’ file into
          NPP_MAIN_DIR->plugins->config and start customising it to your needs. Restart Npp.
          If anything is unclear in the case of NppLspClient, let me or in the case of NPP LSP @Kered13 know.

          P 1 Reply Last reply Feb 11, 2022, 12:25 PM Reply Quote 3
          • P
            Paolo Santini @Ekopalypse
            last edited by Feb 11, 2022, 12:25 PM

            @ekopalypse Brilliant!
            I followed your detailed instructions and unpack NppLspClient: it works exactly I look for.
            Thanks a lot
            Paid Beer
            Paolo

            E 1 Reply Last reply Feb 11, 2022, 1:41 PM Reply Quote 1
            • E
              Ekopalypse @Paolo Santini
              last edited by Feb 11, 2022, 1:41 PM

              @paolo-santini

              The next version will be more user friendly, like it has its own dialogs for diagnostics, symbols etc…

              40b4591d-e35e-48fc-905f-86f482cdf20c-image.png cf452559-274a-40b5-860b-d5a6c6d00f20-image.png
              and is in general more robust.

              P 1 Reply Last reply Feb 14, 2022, 7:32 AM Reply Quote 1
              • P
                Paolo Santini @Ekopalypse
                last edited by Feb 14, 2022, 7:32 AM

                @ekopalypse
                Very Good!!!
                I’ll be waiting for it.
                Thanks
                Paolo

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors