Community
    • Login

    Commenting a line through a keyboard short cut adds an unwanted space after the symbol

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 855 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.
    • felad0001F Offline
      felad0001
      last edited by

      Hello,

      I’m currently trying to create a language to easly comment lines using the keyboard but I have the following issue:

      The comment symbol is “-” (so only the minus), but when I use ctrl+k or ctrl+q to comment a line/few lines, I always get a space after the minus sign.
      For example I want to comment the following line:
      19.0 0.009 0.063 ; (@ 715 cm above median plane)
      If I use the comment shortcut I get:
      - 19.0 0.009 0.063 ; (@ 715 cm above median plane)
      But the language my software is using does not accept the space after the minus and I need to have:
      -19.0 0.009 0.063 ; (@ 715 cm above median plane)

      Is there anyway to configure the shortcuts ctrl+q, ctrl+k to not include this space after the “-” sign? It would save me a lot of time in commenting codes :)

      Thanks a lot in advance for your help.

      Félix

      1 Reply Last reply Reply Quote 0
      • felad0001F Offline
        felad0001
        last edited by

        Little Up, if anyone has an idea.

        Thanks!

        Alan KilbornA EkopalypseE 2 Replies Last reply Reply Quote 0
        • Alan KilbornA Offline
          Alan Kilborn @felad0001
          last edited by

          @felad0001

          It doesn’t help you, but I long ago gave up hope of using the “comment” commands in Notepad++. I found, like you, that there are some weirdnesses with it. The lack of previous replies may indicate that no other readers have thought of a way to solve your issue. :-(

          1 Reply Last reply Reply Quote 0
          • EkopalypseE Offline
            Ekopalypse @felad0001
            last edited by

            @felad0001

            Have you thought about using a macro?
            Of course that would mean that you need to use a different comment
            shortcut as used by other languages but if it is that important then
            maybe this is a way to go.

            1 Reply Last reply Reply Quote 1
            • felad0001F Offline
              felad0001
              last edited by

              I haven’t no. I’m not familiar with macros in Notepad++, but it surely sounds like a good idea. I’ll try to give it a try :)

              Thanks

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors