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