Looking for a tool that will let me store and insert text fragments (code snippets) into Visual Studio [closed] - code-snippets

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a demo coming up and would rather not type in front of the audience. I figured I could put the code snippets some place and put them in as I go. Now I know I can use Notepad (or pretty much any other text editor) for the purpose but I have a feeling there's something nicer out there. Anybody have any ideas for me?
Ideally I'm looking for something like the Visual Studio toolbox where I can drag text in to set it up and then drag it back into the IDE when I need it.
I tried just dragging the text to the toolbox. It seemed to work but then I closed Visual Studio, put my laptop into standby and powered it back up and everything was gone! Maybe its a VS bug (or a Win 7 bug) or maybe this is how its supposed to work. Either way, I'm looking for something a bit more robust.

Have you tried just dragging the text to the toolbox? I believe that does exactly what you want.

Here's some information on defining your own code snippets in Visual Studio.
http://blogs.microsoft.co.il/blogs/gilf/archive/2009/01/17/how-to-write-your-own-code-snippets.aspx
Code snippets are inserted typing their keyword, then pressing Tab twice.
If you're not familiar with how they work, try using some of the default ones first. Type "prop" then press Tab twice, and VS will generate a Property stub for you, or "mbox" to generate a MessageBox.Show() stub.

what about using the built in code snippets, creating your own with their own aliases? modify an existing code snippet, and give it an alias of (for example) #demo1
go into your code, type #demo1, press tab and hey presto.
You have your own folder where snippets are installed and anything in there is picked up in eachinstance of visual studio.
have a look at this, and this.

i am using http://www.codeplex.com/SnippetDesigner for exactly your scenario. it's really easy to use. have fun!

Maybe this is what you're looking for.
http://www.csharper.net/blog/new_version_of_clipboard_manager__1_0_0_6_.aspx

you could write a visual studio macro to do it.

Or a clip manager, like jumpcut on MacOSX. Must be something similar for windoze. http://jumpcut.sourceforge.net/

Related

Annotating data in Doccano [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 11 months ago.
Improve this question
Does anyone know why I do not get the tags in my dataset as shown on the tutorials/examples? I've highlighted a Dutch word with the tag 'direct medical relevance' but it doesn't appear as tagged when I press the label shortcut.
Does anyone know how to fix this?
Seems like a bug to me, the project repo was updated a few days ago.
The demo has the same problem for me as the one you describe, meaning that nothing happens on mouse button release and I can't set any labels: https://doccano.herokuapp.com/demo/sentiment-analysis
The NER demo which uses a slightly different script still works for me: https://doccano.herokuapp.com/demo/named-entity-recognition
So you could see if you find an issue for this problem (or write one yourself) or you can try to clone and go to an older commit before this problem.
From my personal experience while I found Doccano alright to work with for a while I found there to generally be a lot of bugs and quirks around the frontend interface which can give you a hard time if you try to annotate a large corpus. Also I dislike the fact that you can annotate string spans which are not following the token spans, since that caused me to misclick and having to correct it a lot, but that might be a personal issue. I switched to Universal Data Tools Named Entity Recognition Tool which worked better for me since it does the mentioned things differently and can be run entirely in the browser.

Xcode macros, compiling, linking process [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Lots of iOS development tutorials are full of "just copy this and your button will work" or "this code does this, just copy it and change some variables". I'm trying to learn everything from scratch so it makes the best possible sense. Turns out I can't find any information about Xcode compiling and linking process. And also, I would like to understand how the macros like IBAction are translated exactly. I've found something here, but it does not explain entirely. I want to see the code when its fully assembled with its headers and so...
Is there a way to program for Xcode just with code? I mean, to insert and link all objects with code, no visual processes used.
Does anyone know a good book about this?
Here are some answers to your questions!
Anything that you can do in InterfaceBuilder you can do in code, yep. Configuring view objects is a bit repetitive and ends up being a lot of code for something easy (once you know what options you have) which is why the IB tool is there.
The IBAction flag is actually only used by the IDE to provide assistance in generating the xib so when the file is unarchived, the properties it sets will line up. It's not foolproof as you can make a property, set the outlet, then delete the property and your app will crash!
You can see the output of pre-processor macros by selecting Product -> Perform Action -> Compile/Analyze/Preprocess/Assemble. These are all handy tools to see what Xcode is building under the hood.
Compiling and linking is not too important for iOS development since Xcode is the only tool you use to build your application (with the exception of xcodebuild command) and it handles that all for you. If you do want to dig in deeper, I don't know of a good reference but googling LLVM (the toolset to compile/debug/link/etc) would be a good starting place.

How can I convert an .rtf or .doc document to LaTeX? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program.
What else can I use? I don't mind which type of file it is I'm converting to LaTeX (.doc would also be OK, as long as it keeps my formatting).
I am using Mac OS 10.5.8.
Open Office can. Download it.
See the fmtconv question on the UK TeX FAQ, or, more specifically, the page on Converters from PC Textprocessors to LaTeX - Overview, which is specifically about this question and has many many examples. This general list of word-processor filters may help too.
UnRTF claims to be able to convert RTF to LaTeX as well as other formats (e.g. HTML). It claims to support HTML best, so perhaps RTF->HTML->LaTeX (e.g. with html2latex) might work better. I haven't actually tried any of this though.
Make your rtf/doc document into docx, and convert it using docx2tex.
You need the System.IO.Packaging .NET class to get this to work, which is no problem if you are using Windows, and is in principle supported by Mono if you are not. If anyone has success doing this with Mono, I'd like to hear of your experiences: this didn't work a year or so ago, but their implementation of that class has improved since then.
I say more about the utility in an answer at tex.stackexchange. Suffice it to say that I consider this by far the cleanest, most Latex-friendly option out there.

MathML, Latex or similar for web-based WYSIWYG editor [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for a web-based WYSIWYG (or WYSIWYM) editor like TinyMCE or WMD Editor (used to write this question) that supports users to write mathematical formulas. I have looked at LaTeX a little bit but it has a learning curve and I am not sure if support for MathML is extensive. Ideally I would also like to avoid having to rewrite an editor and would rather just pick one off the shelf.
Would like to know if any of you have dealt with a similar situation and what solution you adopted/built.
I was looking for something similar and came across this question. Then I was excited to find Mathquill, via the Wikipedia page on formula editors.
I've used a bunch of different formula editors, from MS Equation Editor to Google Docs' to LyX, and this is probably the most usable/fluid of all of them for simply banging out formulas. And it's web-based and GPL. This thing is much nicer than Google Docs' formula editor, at least.
Still leaves plenty of things to be desired, e.g. so far I've found: bolding, entering things like bra-kets, \hat, undo/redo history, mouse drag selection, etc. But I'm impressed by what's already in there. Anyway, it's just a few Javascript files, and on github.
http://www.dessci.com/en/ has the software to do exactly what you want.
I used texvc in a project a while back (what wikipedea uses) and it was reasonable, but it isn't really WYSIWYG. On the other hand, I prefer that since in many cases it's easier to specify what you mean than draw it.
see here DragMath
http://www.dragmath.bham.ac.uk/index.html
which is already used by Moodle and other sites.
And its Open Source
WIRIS would be another Javascript based visual math editor (commercial license required for some applications).

Code snippets for Delphi? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there a good code snippets application for Delphi or general purpose with IDE integration? I would like to store Code, queries, notes, etc..
Thanks
GExperts has a Code Librarian feature for code snippets amongst many other nice features and integrates with the IDE. Well worth to check out even if you don't decide to use the Code Librarian feature.
Delphi 2006 and later has Live Templates. They are a bit tricky because you've got to edit XML files to really make them work, but they are powerful when they do. See Nick's Live Templates Camtasia Presentation. Ctrl-J is the shortcut to invoke this.
Prior to that, Delphi 2005 and earlier had simple code snippets. I believe Ctrl-J also invoked them.
Another option is to use Castalia and its Code Templates feature.
Dittos to Ozmosys above.
Also check CodeSnip Database Viewer from the delphidabbler:
http://www.delphidabbler.com/software/codesnip
I use Knowledgebase from Ozmosys. It hasn't been updated in a while, but it works, and it is written in Delphi. Ozmosys
I have to endorse Ozmosys' Knowledge Base too. The reason it hasn't been updated in a while is that it just works. When I DID have issues early in the development of the program, the author was very responsive and quick about doing it. It's logical and easy to post code and other types of hints. I use it every day, juggling the three or so projects that seem to be perpetually on my plate.

Resources