Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9255069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:37:46+00:00 2026-06-18T11:37:46+00:00

When working on different projects, with different people and using different frameworks you often

  • 0

When working on different projects, with different people and using different frameworks you often struggle to keep your code compliant to their conventions. Some teams get very strict about naming variables/methods/classes and other things the others make holy wars around the topic. I understand them and I fully support, but as any developer I have my own preference I wish I could code with comfortably. This makes me think whether there is a simple solution.

Are there any tools or editors that can automatically convert code to follow a different standard? I imagine there can be no such smart tool that will support naming conversions, so I’m ok with that, but I really wish to see

foreach($lala as $lalala) {

and not

foreach($lala as $lalala)
{

same goes with statements:

if(I_LIEK_COOKIES) {
    eat_cookie();
} else {
    toss_cookie();
}

and not

if ( I_LIEK_COOKIES ) {
    eat_cookie();
}
else
{
    toss_cookie();
}

(note the spaces between and around the parenthesis too)

I won’t even mention spaces/tabs, I can convert it in my IDE with a shortcut but it would be awesome.

So the things I would like to get customized are

  1. spaces between parenthesis
  2. tabs/spaces and spaces per tab
  3. mustache brackets on the end of the line or on the new line
  4. always attach mustache brackets to any if/ifelse/else/for/foreach etc.

Some of the extras anyone would appreciate:

  1. Line ending style
  2. Delete extra spaces on the line endings (like sublime text 2 can do on save, but would be great for other IDE/editors)

The perfect workflow would be like this:

  1. I pull from git
  2. The code gets converted to my style
  3. I code stuff
  4. I commit and push
  5. Before everything gets pushed(or even commited) code gets converted to the convention style

Of course, someone may wish not to use git, then it would be simply converted when opening and after saving the file but as I understand it’s impossible to do outside of an IDE/editor with a tool of some kind.

Has someone stumbled upon something like that? Could not find anything anywhere but tab/space conversion.

P.S. I wish to mention I’m working with PHP/JS so it’s prioritized but I code using other languages on my spare time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:37:48+00:00Added an answer on June 18, 2026 at 11:37 am

    You could store configurations (e.g. vim .vimrcs, Eclipse preferences etc.) in each project’s version control repository.

    However, I think there’s a big problem wrt. converting code when pushing/pulling to/from repositories. If someone reports an issue with your code (e.g. exception at line 100), converting the code when pulling from your repository is going to give you a different line 100. I don’t think you can practically operate without working on the exact code that your compatriots are working with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using VS2010. The projects that I'm working on use different source control providers,
Two teams are working on two different projects A and B. Some files are
At work we have 4 people working together on a few different projects. For
I'm working on a product which relies on several different projects each hosted in
I'm getting the hang of iOS and working with the different frameworks. My project
For a project I'm working on, I need to create objects using different source
Some Background I have been using Git for a while now. The projects that
Magento has an API and it seems some people are using it via VB.NET
I'm working on a project with different assemblies (imagine a printer-module, a imaging-module etc.).
I'm working on a project where I have different sets of div like heading,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.