Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

im searching a tool to incrase my productivity while coding ;)
There are plenty autocomplete/sublime text editors out there but until now i just wasnt able to spot one that can auto-continue arrays for me.
Lets say i have something like this (ignore the nonsense i just want to show what i need ;)):

C#
array[0]=
array[0]=
array[0]=
array[0]=



and using the editor i would like to continue the array automatically to convert it to this:

C#
array[0]=
array[1]=
array[2]=
array[3]=


I hope you know what i mean.
It is just to much work to assign 300 arrays and more manually ;)

I hope someone can help me.

Thanks a lot in advance :)
Posted

1 solution

I'm sorry to say but with such code-design no tool will help you out...
To initialize an array - of any size - in the way like you propose is totally wrong.
There is the option of
C++
int array[5] = {1,2,3,4,5};

But for 300 elements you probably have to re-think your design!!!

http://www.tutorialspoint.com/cprogramming/c_arrays.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900