Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

code formating

Cantagrel_C_
Beginner
1,059 Views

Hello,

Anyone have any informations about the code formating use by Intel XDK ?

Best regards

0 Kudos
6 Replies
andrey_m_Intel1
Employee
1,059 Views

Do you mean the rules which are used for formatting during typing the code in the Develop tab?

XDK code editor is based on Brackets. There are several settings in the right bottom corner of the edit frame like Tab/Space separator, indent size, etc. Then there are settings in the Edit menu like: "Auto Close Brackets" and there are several plugins which you can install through File->Extension Manager like "Indentator" or "Beautify".

0 Kudos
Cantagrel_C_
Beginner
1,059 Views

Thanks a lot.

0 Kudos
Andrey_M_Intel
Employee
1,059 Views

Cantagrel, are these feature enough for you or you would like to see more formatting capabilities?

0 Kudos
Cantagrel_C_
Beginner
1,059 Views

I try intel XDK for my company, so if you are more feature, I'am Okay to test that !

0 Kudos
Cantagrel_C_
Beginner
1,059 Views

And I have another question :

In JSHint Problems, when I use your features, i see this error all the time:

Mixed spaces and tabs. (W099)

Have you any informations on this error ?

0 Kudos
Arnold_W_1
Beginner
1,059 Views

Cantagrel C. wrote:

Mixed spaces and tabs. (W099)

Have you any informations on this error ?

This is not an error but a warning (W099). If you have a line with both tabs and spaces you get this warning.

You can remove the spaces (or tabs) and the warning will go away... or leave it.

You can also force warnings to go away by adding for example:


/*jslint browser:true, devel:true, white:true, vars:true */
/*global $:false, intel:false, app:false, dev:false */
/*global myEventHandler:false, cordova:false, device:false */

inside your code. You can also turn warnings off using a config file i think. Someone else can perhaps give an url for more info.

 

 

 

0 Kudos
Reply