How to make vs code extension take in user path input and how to create coding templates - visual-studio-code

for my internship I am making an VS code extension. I have never developed anything like this before so any help or documentation links or tips are welcome.
what I am doing is as follows: develop an extension that is capable of taking in user input. the input will be a path to an .isf/.hdf file. this could be thru the simplest of text box buttons initially, as functionality before polish is what im focusing on right now.
It also needs to be able to provide templates with preconstructed code. such as, a option on the file menu where it might say "new template.py file". And when this option is choosen, a .py file with a lot of "boiler-plate" or preconstructed code is created for them.
im also using CanvasJS to show some graphical data. I would need a way for the graph to appear in a tab/window of the VS Code rather than the browser of the user.
Thank you in advance! Please let me know how to edit/add to this question, I know its extremely vague. Still a novice but excited to get this extension developed!
P.S.
im not expecting anyone to DO this for me, just to point me in the general direction so I can sink my teeth into useful documentation, examples, and/or tutorials. Thanks again :)

Related

How to make GUI to take user input as a VS Code Extension

I am trying to develop a VS Code Extension that has a button or some form of GUI so that a user can input a file path and that file path can be stored and used later. I have been looking all over for examples or some documentation on developing even something as simple as a textbox for this extension but I am not finding anything.
if anyone has ideas or can point me in the right direction to begin this part of the project it would be greatly appreciated! Thank you!

Markup items in other files on xcode?

Hi, guys.
I'm using Xcode to continue an existing app and I know the best way to document this specific project is through markups (/// instead of //). Problem is: There are too many functions and using markups to explain all of them would make the code difficult to visualize. Instead, I really want to markup variables, functions, methods and so on... but in other files if it's possible.
Can I markup a function declared in another ".swift" file, somehow? How? I realized my code would improve a lot with those markups to my co-workers, but I've got to really emphasize how illegible the files that variables/functions are declared could become.
PS: StackOverflow's newbie here. If anything goes different than our community's guidelines, please let me know.
Thanks in advance! ;)

JSON iphone help desperately needed

Hi desperate newbie in need of direction! Well I say newbie, I have almost built myself the app I set out to achieve, a tableview to display story titles from my website, that when touched using the navigation controller slides to the story/article.
Only problem is that I only have test data that is embedded into my views as an array (which is no good to me). I need this data to come from my website, www.theknowledgeoflondon.com. I want to take the title to display in the tableview and then when touch it slide to the actual article.
Been reading up and believe that JSON could be the answer or XML? I do not have a clue on this subject and if I thought learning object c and coco touch was hard this JSON OR XML thing seems to be a new world of PAIN for me!!! and there doesn’t seem to be anything by way of good tutorials out there for someone that has not a clue on the subject. My data is drawn from a simple MySql table from a php script and was hoping there is an easy way to feed this into my table view?
Would be very greatful for any information on a good way forward. Have already downloaded SBJson, but then read that JSONTouch is a good alternative to use. Or should I be using straight XML. Any help and good tutorials would be much appriciated.
Thanks you in advance.
Steve
I made an app last week that uses XML and I found it the easier way of doing what you want to do. But I found an awesome tutorial that I believe is perfect for what you are trying to do. It helps you create the web service needed and teaches you how to access the data that you wish to access.
http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app
and also check
http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service
And for even more information on web related subjects also have a look at www.w3schools.com it is an amazing website dedicated to teach about web technologies such as XML and the like.
Hope it helps you as much as it has helped me.
If you have the option to choose then I will suggest to use plist format. Open a plist file with a plain text editor. You will find that that is actually a XML file. The big advantage of using plist is that you don't need another parser. You can convert a plist file directly to NSArray using arrayWithContentsOfFile or arrayWithContentsOfURL or convert them directly to NSDictionary by using similar methods. And you can create them using plist editor of Mac easily.

creating an address textfield like in apple's sms-app

I'm writing an app, where I the user has to be able to select multiple adresses. I wanted to solve this in the same way, apple does when you send an SMS to someone.
You can enter text and it gets surrounded by a blue bubble for each adress selected.
I've already found facebook's tree20-kit, but I can't get it to work because of some linker error I cannot solve.
Is there any other kit out there, that's capable of doing this, or do you have any suggestions on how to create such a textField?
Yours,
Bujtor
Interesting. I don't know of any other open source solutions for this, and I think writing from scratch would be much more time consuming than trying to resolve the linker error. I would recommend spending a few hours and do the following:
Create a new empty application.
Download Three20 and follow the detailed instructions on GitHub for linking the framework.
You should be able to get this to link as many others, including myself, have been able to use this framework.
Sorry this isn't a straight forward answer to your question. I hope it was helpful just the same. Andrew.

GOLD Parse, how do you actually implement your code?

I am not quite sure how to implement my the code after generating the skeleton. I didnt use const only, i do have main files and i tried several c(++) versions along with c# and still i dont understand. I dont think any of them can load a file and parse test files (i know gold builder can parse my test files).
The Kessels C skeleton looks complete. Buts not, it uses a struct and members (Token->Reduction->TokenStack) yet when i search TokenStack i cant find a place where it is defined, only used. I feel like i am missing something. I cant find Kessels other code anywhere.
My question is how do i implement my body? (is there another skeleton you prefer), are there any other downloads i overlooked? i tried looking at these downloads but i didnt understand what to do with them. It also looked more like example source code then a template http://www.devincook.com/goldparser/engine/c/index.htm
PS: I wouldnt mind doing a C# implementation, i am better with c(++).
I've used the Calitha C# Engine. Let me know (by posting a comment to this answer) if you still want an answer, which I can answer using my knowledge of this C# engine.
My question is how do i implement my body? (is there another skeleton you prefer), are there any other downloads i overlooked?
The Calitha Engine download includes source for the Engine, and a sample program (named "TextCalc") which illustrates using it.