It's UWAweek 48

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying the 3 articles in this topic
Showing 3 of 919 articles.
Currently 4 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
10:23pm Thu 15th Sep, Christofle S.

I'm currently coding with vim in ubuntu. When I copied my code out of linux and opened it with visual studio code, just to check, I noticed the indentations were different. "if" statements on the same indentation level as the "while" statement before it. What happens if we submit code and the readability gets jumbled up by other programs?


SVG not supported

Login to reply

👍?
helpful
5:25am Fri 16th Sep, Christopher M.

"Christofle Sangkanpara" <23*9*7*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> I'm currently coding with vim in ubuntu. When I copied my code out of linux and opened it with visual studio code, just to check, I noticed the indentations were different. "if" statements on the same indentation level as the "while" statement before it. What happens if we submit code and the readability gets jumbled up by other programs?
Difficult to say how readable the modified code is/would be without seeing it. It sounds like Visual Studio is applying some coding/style convention that, maybe, you can disable? Ensure that the code you submit is readable (obviously!) and consistent. Good luck,


SVG not supported

Login to reply

👍?
helpful
11:02am Fri 16th Sep, James A.

One thing to be aware of here in particular is whether you are using spaces or tabs for indentation. Spaces are a consistent size across editors, whereas tabs may vary (common sizes include 4 and 8 spaces). That's not a problem, so long as you only use one or the other in a file. But if you accidentally mix them, the indentation levels can appear completely different between editors.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy