• Login
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 436 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.
  • F
    felad0001
    last edited by Mar 18, 2020, 11:33 AM

    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
    • F
      felad0001
      last edited by Mar 27, 2020, 7:43 AM

      Little Up, if anyone has an idea.

      Thanks!

      A E 2 Replies Last reply Mar 27, 2020, 12:22 PM Reply Quote 0
      • A
        Alan Kilborn @felad0001
        last edited by Mar 27, 2020, 12:22 PM

        @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
        • E
          Ekopalypse @felad0001
          last edited by Mar 28, 2020, 7:45 PM

          @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
          • F
            felad0001
            last edited by Apr 2, 2020, 11:25 AM

            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors