Ask Your Question
1

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

asked 2020-09-24 21:04:20 -0500

tulei770415 gravatar image

updated 2020-09-28 10:39:23 -0500

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.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-28 13:11:34 -0500

  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.

edit flag offensive delete link more

Comments

Thanks very much!

tulei770415 gravatar imagetulei770415 ( 2020-09-29 04:15:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-09-24 21:04:20 -0500

Seen: 37 times

Last updated: Sep 28