B
B
borideni2015-10-02 10:46:22
C++ / C#
borideni, 2015-10-02 10:46:22

How to change the "start" code when creating a Command Line Tool project in XCode?

When you create a Command Line Tool project in XCode, the main file automatically contains the code to run "Hello World!"

//
//  main.cpp
//  test
//
//  Created by Denis on 02.10.15.
//  Copyright © 2015 Denis. All rights reserved.
//

#include <iostream>

int main(int argc, const char * argv[]) {
    // insert code here...
    std::cout << "Hello, World!\n";
    return 0;
}

I would like to know if it is possible to somehow change this code template so that the next time you create a project, you do not have to delete extra lines, immediately add the necessary comments, connect the necessary libraries, etc.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-10-02
@borideni

template is stored in

Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate/TemplateInfo.plist

understand))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question