我有一个Python类:
class PatientParamStruct:
output_folder = ''
condition_timestamps = None # list cannot be initialized here!
lag_time = 0
lead_time = 0
feature_numbers = None
input_feature_folder = ''
input_folder_validation = ''
patient_number = 0
lag_number_of_windows = 0
samples_per_second = 0
prediction_window = 0
moving_window_time = 0
subwindow_lag_time = 0
我可以在Eclipse PyDev中按字母顺序排序一堆行吗?
在这种情况下,输出将是:
class PatientParamStruct:
condition_timestamps = None # list cannot be initialized here!
feature_numbers = None
input_feature_folder = ''
input_folder_validation = ''
lag_number_of_windows = 0
lag_time = 0
lead_time = 0
moving_window_time = 0
output_folder = ''
patient_number = 0
prediction_window = 0
samples_per_second = 0
subwindow_lag_time = 0
答案 0 :(得分:2)
是的,您可以使用:
Ctrl + Shift + O
它是用于组织导入的相同绑定,但是如果选择了某些文本,它会对文本进行排序(如果没有选择文本,它将组织导入并尝试添加新文本导入未解决的令牌)。