Attention: Please checkout the new Mac-Forums Facebook page.

https://www.facebook.com/macforums1

Additional details in the "News & Community Announcements" thread.



Results 1 to 7 of 7
  1. #1
    XCode Text Editor Question
    When you are typing a string in XCode, it will automatically insert the second double-quote. For example, type:

    print ("

    and XCode will type

    print (""

    Which now requires that you take your fingers off of the home row and find an arrow key to get past the second quotation mark.

    How do we disable this?

    P.S. Sorry, I tried googling this a million ways and mostly they just point to articles about turning off smart quotes (unicode quote replacement). Thanks in advance for relieving me of this torture!

  2. #2
    XCode Text Editor Question
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Your Mac's Specs
    Way... way too many specs to list.
    So you don't want it to place the cursor between the quotes?

    Last edited by Dysfunction; 03-19-2016 at 06:09 PM.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  3. #3
    XCode Text Editor Question
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,853
    Your Mac's Specs
    Early 2015 13" rMBP
    Or, if XCode is like any other editor, if you type the second quotation mark, the editor will ignore it and move the cursor to the right of the second one it inserted.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  4. #4
    Hey Dysfunction,

    It's the second double-quote that I don't want it to add (not braces). The "Automatically insert closing braces" doesn't affect double-quote ("), it only affects curly braces (}).

    vansmith, you're right, any other editor will let you plow through from the keyboard. In this case, you end up with print("My thing");" -- it just leaves the other double-quote on the end of the line. It's the worst of all scenarios.

  5. #5
    XCode Text Editor Question
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Your Mac's Specs
    Way... way too many specs to list.
    Bummer, donno.. I've never tried to do that. Then again, I don't think I've noticed the issue you're having (other than the braces, which I've had bug me prior).
    mike
    This machine kills fascists
    Got # ? phear the command line!

  6. #6
    Quote Originally Posted by Dysfunction View Post
    Bummer, donno.. I've never tried to do that. Then again, I don't think I've noticed the issue you're having (other than the braces, which I've had bug me prior).
    Your comment made me think maybe this only happens to me (or else Google should be full of rants about this). I figured it out!

    My unique setup is that I have internationalization turned on. So "i turns into an i with an umlaut over it, for example. With that, XCode doesn't remove the second double-quote when you try to type through it (by typing the double-quote), probably because they can't tell if you're trying to start an international character or not.

    If you're running into this weird behavior when typing strings, turn off your international keyboard and just set it to US-based and everything will go back to normal.

    Dysfunction, that was just enough info to send me down the right path. Thanks!

  7. #7
    XCode Text Editor Question
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Your Mac's Specs
    Way... way too many specs to list.
    AHA! I use umlauts all the time, but I use opt-u to generate the umlaut! Schön! Glad it's working!
    mike
    This machine kills fascists
    Got # ? phear the command line!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Xcode editor background color change
    By skiabox in forum macOS - Apps and Games
    Replies: 6
    Last Post: 10-23-2010, 12:53 PM
  2. Terminal Question - opening text editor in its own window
    By big--phil in forum macOS - Operating System
    Replies: 4
    Last Post: 06-02-2009, 11:36 AM
  3. The Annoying Question: Text Editor
    By moore1879 in forum macOS - Development and Darwin
    Replies: 1
    Last Post: 06-14-2008, 11:27 PM
  4. Text Editor
    By tobywuk in forum macOS - Apps and Games
    Replies: 11
    Last Post: 12-20-2007, 02:16 PM
  5. c++ editor - xcode
    By Kleb in forum macOS - Development and Darwin
    Replies: 1
    Last Post: 08-14-2004, 12:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •