Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up per-project import paths #21

Open
grogancolin opened this issue Jul 22, 2015 · 3 comments
Open

Setting up per-project import paths #21

grogancolin opened this issue Jul 22, 2015 · 3 comments

Comments

@grogancolin
Copy link

In the readme you have:
"You can also add include_paths per project."

I cant seem to find a way to do it (I may simply be looking in the wrong place).

Is there any documentation on this?
Thanks

@yazd
Copy link
Owner

yazd commented Jul 22, 2015

You can do that by editing the sublime-project file. For example, this is part of my sublime-project file for vibe.d:

    {
        "folders":
        [
            {
                "name": "vibe-d",
                "path": "."
            },
            {
                "name": "libevent",
                "path": "/home/user/.dub/packages/libevent-2.0.1_2.0.16"
            },
            ...
        ],
        "settings":
        {
            "include_paths":
            [
                "/home/user/Projects/vibe.d/source/",
                "/home/user/.dub/packages/libevent-2.0.1_2.0.16/.",
                ...
            ],
            "package_file": "/home/user/Projects/vibe.d/dub.json"
        }
    }

If you are using DUB, you can automatically create this file using the sublime command DKit: Create Project From DUB Package File.

I will keep this open until I add proper documentation.

@grogancolin
Copy link
Author

Thanks!

@claudiug
Copy link

claudiug commented Jun 4, 2016

any events with this issue? I'm curious how I can add vibe.d in my project to have autocomplete :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants