What is your favorite source formatting tool? [closed] - formatting

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
We all know that deadlines and/or critical bugfixes and make us forget a bit about source formatting guidelines. Or sometimes you need to work with 3rd party source code which seems to have been coded by someone who doesn't know the meaning of whitespace and readability. What is your favorite tool to tabulate your code (or 3rd party code) to your specification?

Resharper's built in tool is pretty awesome.

I like Visual Studio's autoformat feature. It's all mass-market and The Man's Tool, but hey, it works & I can read their formatting.

Python itself.... and a vote for Resharper

One can also use Uncrustify and the UniversalIndentGUI, also good for mass tagging.

Emacs:
C-x h (select all)
C-M-\ (indent region)

Heard good things about Artistic Style.

For Delphi I like Delforexp. Simple and quite fast.

My IDE, IntelliJ, does this while I check in or with a keystroke.

Perl is the language I use most, and perltidy does a great job.

I personally use PolyStyle as it supports many, many languages, but I'm curious about alternatives, hence the question.

HTMLtidy is great for HTML formatting.

My favorite tool is indent. It is available off-the shelf in most Unix distributions. It has tens of options to accommodate most C style conventions. On Windows it can be easily installed through Cygwin. Having said that, automated code formatting should be your last resort. No tool can format code as well as a good programmer.

Related

Renaming/ Refactoring in Management Studio [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
In my current project I've been inherited with lots of long (1200+ lines) SQL Server stored procedures with some horrible indentation and formatting which makes them almost unreadable. Is there some tool that I can use to automatically format these and make them more readable? I don't want to go through it manually and indent it.
Here's a couple -- no idea how well they work, unfortunately...
http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm (free)
http://www.sqlinform.com/ (free for personal use)
Try using ApexSQL Refactor. It integrates into SSMS and it’s a free tool. Good thing about it is that it allows to save formatting options and share them with the team so all of you use the same settings for code.
Try redgate SQLPrompt. It has a 14-day trial.
Red Gate "SQL Refactor" Very good. We bought it
Or
SSMS tools pack Free, but we don't use the layout features
Check out Sql assist:
It has some format feature.
http://www.roundpolygons.com/Default.aspx?PageContentID=5&tabid=92
I would suggest downloading the evaluation version to see whether it fits your need.
Try www.softfrontiers.com/Downloads/ReIndenter.shtml
Free (or donate) and download.
Works on C# and SQL Server code.
Is very fast and doesn't change the code except for indentation and endblock comments where missing and possible.
I am using the following link to format and indend your SQL Server Code online. http://sqlserverlearner.com/online-tools/tsql-code-formatter
Its working great!!
I have been using dbForge SQL Complete for a while now and am pleased with it($99 and free version). The formatter works from within Visual Studio and SMSS. It also has a handy code completion feature that works better the the standard one built into SMSS.
http://www.devart.com/dbforge/sql/sqlcomplete/ordering.html

Code Analysis Tool for PowerBuilder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is anyone familiar with a code analysis tool along the lines of NDepend or JDepend for Powerbuilder?
I'm looking for something that can analyse dependencies and metrics such as SLOC, Cyclomatic Complexity etc. for a large, legacy Powerbuilder application.
The only code analysis tool I know for PB is Visual Expert. I've given it a look some time ago but have never actually used it, so I can't say if it does what the other tools you mention do.
Visual Expert is great. PBL Peeper can do these tasks as well, and it's free... :)
Visual Expert is good, but has some flaws. I tried it to analyze our server side code(EA Server) and found some issues. It's impact analysis feature is good to document a Dependency/Calling Hierarchy in the PB code.
I also tried, [PB code analyzer]:http://www.ecocion.com/pbca-powerbuilder-code-analyzer and it does a good job of documenting PB code.
I am not sure, if they do the metrics you are looking for. I found below links, googling(I didn't try these myself):
http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
http://documentation.microfocus.com/help/index.jsp?topic=%2FGUID.571F6E84.1EE2.4F68.80C7.B1DC863536CB%2FGUID-E418791C-B249-434D-BD5A-A2B570F9FA31.html
Recently I came across this tool called CAST
http://en.m.wikipedia.org/wiki/CAST_Application_Intelligence_Platform
None of the other alleged metrics do any better than SLOC, and some are anti-predictive. Just run wc -l over your source files.

Progress 4GL code analysis tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I know the community around Progress 4GL is highly lacking in activity, but the people on SO are a surprisingly resourceful bunch of guys!
I'm looking for a tool that is capable of creating a dependency tree for classes, include files, and other structures in Progress 4GL. Ideally it would have a command line interface so that it can be integrated into an automated build.
I would like to avoid rolling my own if I can help it. We have a 4Mloc code base, so a manually-generated dependency graph just won't work out very well. Is there any hope?
Thanks!
There is a very active community, but you need to know where to look. :)
See http://www.joanju.com/ for several tools which might be useful.
BravePoint might have some resources, but probably not free.
Also http://www.oehive.org/
I believe the free 10-year-old app below will do some of what you require, but was written for legacy Progress versions (ie. it will only recognize direct old-fashioned RUNs and includes, I think). As for rolling your own, or getting a start, it was written in c++ and the author may still have the source code if you email him...
Here's the link to the app
The Progress community can be found at various places in addition to the above (eg. Peg.com, ProgressTalk.com, PSDN.com, etc.), is relatively minute, but is hardly inactive.
My xref->TT tool can take apart xref strings from the COMPILE XREF statement and turns it into a set of temp-tables. You could then take that the temp-tables and use them to populate a database, after which I'm sure you'll post your code back to the community so others can take advantage of it. :)
I stopped working on it around ~2008, so it pre-dates the OOABL structures.
See http://communities.progress.com/pcom/docs/DOC-16588

Alternative XAML authoring tools? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
If I am writing XAML, do I have to use Expression Blend or Visual Studio, or are there alternative tools around?
Are you designing graphics/assets with XAML or creating user intefaces for applications?
If you're designing, you have a lot of options. Expression Design, of course, but there are good converters out there to get XAML from powerhouse formats/apps like Adobe Illustrator.
If you're coding, while Blend has severe UX shortcomings, it has a pretty solid feature set -- far more than any alternatives I've seen so far. There are alternatives, though, as Dave pointed out.
There Microsoft's XAMLPad application:
Depends on what you want to accomplish and how much money you are willing to spend. As Jay said, if your main goal is to code your application go for Visual Studio (and get Resharper if you can, makes your life way easier). If your goal is design, go for Expression Blend/Design.
XAMLPad can also come handy (it shows you a nice preview for your code too) and it is very light weight.
+1 for Kaxaml as well.
There is an open source application called XDraw on CodePlex if your interested in creating drawings using XAML. There also was a product called Vector Architect which looked pretty slick but it looks like the authors of this application have stopped selling it.
So far I've been pretty disappointed by the tools out there for creating graphics and/or designing UIs with XAML including Expression Blend and Expression Design. The tool that think is the best for WPF based UI is Visual Studio 2010 but it definitely has its limitations when dealing with assets in resource dictionaries.

Is there a tool for refactoring SQL, a bit like a ReSharper for SQL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
The sort of stuff I'm after right now is quite basic:
Auto format
Detect unused variables
Variable naming convention checking
I wouldn't be surprised if there was a tool available that could handle more complex refactorings such as those found in Refactoring Databases, but I appreciate that the added complexities introduced by current db structure and data state may prevent many of them.
I suppose I'm after ReSQLer
RedGate offers SQL Refactor and SQL Prompt, along with a slew of other SQL related tools. Check out their pages for more info and for a free trial.
There is a free SQL formatting and refactoring add-in for SSMS and VS developed by ApexSQL. I suggest you check these articles before you decide if it's the right tool for you:
http://solutioncenter.apexsql.com/category/sql-code-refactoring/
I have used Embarcadero Rapid SQL for code formating.
Something like SQL Prompt from RedGate?
SQL Prompt has basic format and beautify functions now, if you don't want to buy both products
The free SSMS Tools Pack supports basic beautify as well I believe
http://www.ssmstoolspack.com/Features?f=3
Uppercase/Lowercase keywords and
proper case Database Object Names. Set
all keywords to uppercase or lowercase
letters. Custom keywords can be added.
Format all database objects to their
proper case sensitive name.
I use SQL Enlight, which is a fairly inexpensive tool which does autoformatting, validation and refactoring pretty well. (And -- no, I am not affiliated w/ Ubitsoft in any way...)
JetBrains have just announced 0xDBE - a new IDE for SQL machines.
It's build on the IntelliJ platform, so should have many of the same shortcuts you get in the JetBrains suite of products.
http://www.jetbrains.com/dbe/