First time here? Check out the FAQ!
1

How to delete blank at end of multi-line & how to delete multi-line str In the beginning

Hello, I have two questions, 1. how to delete blank at end of multi-line; 2. how to delete multi-line str In the beginning, for example:

1.#!/usr/bin/env python  
2.from myThread import MyThread  
3.from time import ctime, sleep  
4.def fib(x):  
5.sleep(0.005)
  1. I want to delete multi-line blank at end of line,
  2. I want to delete multi-line str In the beginning, like: 1. 2. 3. at front of line, thanks very much.
tulei770415's avatar
13
tulei770415
asked 2020-09-24 21:04:20 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2020-09-28 10:39:23 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0
  1. To automatically strip the whitespace at the end of each line, set the Strip Trailing Whitespace setting on the Editor page of the Preferences dialog.

  2. To delete a rectangular block of text, use Edit > Selection Mode > Block to enter block selection mode, select the rectangle and then use the delete or backspace key to delete it.

Wingware Support's avatar
4.2k
Wingware Support
answered 2020-09-28 13:11:34 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks very much!

tulei770415's avatar tulei770415 (2020-09-29 04:15:10 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer