If I am coding a try/except block, the IDE is quick to throw up errors for incomplete lines meaning I lose the autocomplete.
For example, I was doing this exact block :
try:
json.loads(self.text_box_json.text)
except ValueError as e:
alert("Invalid JSON")
As soon as I had typed in the “try:” and pressed enter the existing code below this new block got underlined as an error, meaning I had to type in the text box name without the autocomplete helping.
A workaround is to put pass
es as placeholders in the block and then go back and insert your code.