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

Add .vscode/ VSCode cache folder #3528

Closed
wants to merge 1 commit into from
Closed

Conversation

@omerhijazi404
Copy link

@omerhijazi404 omerhijazi404 commented Sep 20, 2020

Reasons for making this change:

Many Unity developers use Visual Studio Code as their primary code editor for their scripts (C#)
and using Code with projects creates a cache directory called .vscode/ which is not needed like the .vs/ directory.

@66Gramms
Copy link

@66Gramms 66Gramms commented Sep 22, 2020

Agreed

@adi-g15
Copy link

@adi-g15 adi-g15 commented Sep 24, 2020

Reasons for making this change:

Many Unity developers use Visual Studio Code as their primary code editor for their scripts (C#)
and using Code with projects creates a cache directory called .vscode/ which is not needed like the .vs/ directory.

But the whole directory shouldn't be added to .gitignore I think, as it also stores configurations, so if another user clones the repo, vs code will set it up from the configs.
Better left to the user, or prefer what MOST would prefer, though i can't say about that.

For example, i can have intellisense settings in my settings.json like this, so that it maintains code conventions throughtout, like

"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,

many repos say to trim whitespaces, and using the original settings.json as the author, shows the intent itself, and vs code will maintain it.

    "editor.formatOnPaste": true,
    "workbench.editor.highlightModifiedTabs": true,
    "explorer.sortOrder": "type",
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": true,
    "editor.acceptSuggestionOnEnter": "off",
    "deepcode.uploadApproved": true, //accepting suggestions using enter turned off
    "workbench.colorCustomizations": {
        "activityBar.background": "#2B3105",
        "titleBar.activeBackground": "#3C4407",
        "titleBar.activeForeground": "#F8FCE1"
    }

Also launch.json can include specific args to be included for debug mode, that makes it simple, to just head over to the debugger in VS Code, rather than configure the commands yourself, or using another better debugger.

c_cpp_properties.json has include paths, so when vscode intellisense isn't using cmake as the provider, it uses this, though it can be generated easily

@omerhijazi404
Copy link
Author

@omerhijazi404 omerhijazi404 commented Sep 24, 2020

Well then like this, even the .vs directory is needed when talking that way

@66Gramms
Copy link

@66Gramms 66Gramms commented Sep 24, 2020

It's not needed, as those are developer settings. A developer's personal settings shouldn't be in the version control!!! So, the .vs directory is not needed at all.

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

Successfully merging this pull request may close these issues.

None yet

3 participants