0

When I write Python code in VS code, it takes too much control of how it looks, which to me makes it harder to follow. Is there a way i can stop it auto wrapping lines?

What I want:

tn.write(('print(sci:StateString())' + '\n').encode('ascii'))
state = (tn.read_until(b">  ").strip(b">  ").decode('ascii'))
state = state.rstrip()

What I'm getting:

tn.write(
    ('print(sci:StateString())' + '\n').encode('ascii'))
state = (tn.read_until(b">  ").strip(
    b">  ").decode('ascii'))
state = state.rstrip()
3
  • 1
    What code formatter are you using? Commented Jun 9, 2021 at 14:32
  • Are you using the format code option? Commented Jun 9, 2021 at 14:33
  • Similar to stackoverflow.com/questions/30064480/…. Commented Jun 9, 2021 at 14:36

2 Answers 2

1

I disabled Python "IntelliSense" which seems to have done the job

Thanks!

Sign up to request clarification or add additional context in comments.

Comments

0

you are probably using a code formatter like prettier.

you can either disable or change the way it formats by looking at what formatter you have.

1 Comment

The OP could be using other code formatters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.