Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to show "C" languag struct members?

    Help wanted · · · – – – · · ·
    2
    7
    235
    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.
    • Paolo Santini
      Paolo Santini last edited by

      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

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Paolo Santini last edited by Ekopalypse

        @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

        Paolo Santini 1 Reply Last reply Reply Quote 3
        • Paolo Santini
          Paolo Santini @Ekopalypse last edited by

          @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

          Ekopalypse 1 Reply Last reply Reply Quote 0
          • Ekopalypse
            Ekopalypse @Paolo Santini last edited by Ekopalypse

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

            Paolo Santini 1 Reply Last reply Reply Quote 3
            • Paolo Santini
              Paolo Santini @Ekopalypse last edited by

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

              Ekopalypse 1 Reply Last reply Reply Quote 1
              • Ekopalypse
                Ekopalypse @Paolo Santini last edited by

                @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
                and is in general more robust.

                Paolo Santini 1 Reply Last reply Reply Quote 1
                • Paolo Santini
                  Paolo Santini @Ekopalypse last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors