Community
    • Login

    I want to move all the lines at once 2 spaces to the right, a kind of new alignment to the right, but not as much alignment as when I press the tab key.

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.7k Views 1 Watching
    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.
    • Neculai I. FantanaruN Offline
      Neculai I. Fantanaru
      last edited by Neculai I. Fantanaru

      I want to move all the lines at once 2 spaces to the right, a kind of new alignment to the right, but not as much alignment as when I press the tab key.

      So, I have this in notepad++

      useEffect(() => {
      // Simulate authentication verification
      const token = localStorage.getItem('token');
      if (token) {
      setUser({
      id: 1,
      name: 'Rody Nam',
      email: 'yes@tipbsrssl.com',
      role: 'admin',
      company_name: 'DAYU'
      });
      setIsAuthenticated(true);
      }
      setLoading(false);
      }, []);
      

      I want to move all lines at once 2 spaces to the right, a kind of new right alignment, but not as big an alignment as when I press the tab key

      I selected Press Alt + Left mouse click and drag down , then I put Shift + Right Arrow to highlight the beginning of all lines with a large (thin) base from top to bottom. If I then press Shift+Tab, it moves all lines one space to the left. But what if I want to move all the spaces to the right?

      But what if I want to move all spaces to the right, only 2 spaces?

      of course, I can make regex:

      FIND: ^
      Replace by: \x20\x20
      

      OR

      FIND: ^
      Replace by: (Leave 2 empty spaces)
      

      But I want to use columb editor. Alt+Click Selector, then Shift+Space

      But doesn’t work.

      Neculai I. FantanaruN 1 Reply Last reply Reply Quote 0
      • Neculai I. FantanaruN Offline
        Neculai I. Fantanaru @Neculai I. Fantanaru
        last edited by Neculai I. Fantanaru

        @Neculai-I-Fantanaru

        Alt+Left Click but not select the entire area, but only starting point of all lines. Will be a horizontal line
        Than press Space

        1 Reply Last reply Reply Quote 0
        • Alan KilbornA Offline
          Alan Kilborn
          last edited by

          To expand on the explanation, for a small number of lines, put the caret in column 1 of line 1. Press Shift+Alt+DownArrow multiple times, enough so that a “skinny but tall caret” appears before the column 1 data in all lines, to wit:

          25400676-feb5-4a56-86ab-a9413176e83c-image.png

          Then press Space two times, to obtain:

          f0784327-74d1-4788-8da2-7c1acf2b63f7-image.png

          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