I have started using Xcode as my main code editor. How might I make Xcode do things like using # instead of // for comments, and otherwise making the IDE friendlier?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From what I can see it already gets the syntax highlighting right, so I think you’re talking about the Cmd-/ script that comments a region out. If you select the Edit User Scripts option from the scripts menu you’ll set that it’s just a perl script. Find the line that tests the shebang in the file for what comment type and make it look for python too:
Note that you’ll need to add the python shebang to files you want this to work with.