I have a C# application and want to allow people to write powershell code within my app.
Does anyone know of a powershell editor with intellisense that fits the bill??
PowerGUI is the choice here. Check out http://powerguivsx.codeplex.com/ and see how PowerGUI is used within Visual Studio.
You might want to check out PowerSE (http://www.powerse.com), it's free. But, there is also an OEM version, which allows you to hook in the editor to edit/debug the PowerShell commands. then get the command text back for storing and executing within the context of your application.
Related
I used to use the Atom code editor and one of the features I liked about this editor was that when I executed python code it would bring up an external CMD window where I would interact with the code, if input was required, and receive the results.
I have moved to VS Code as Atom is no longer supported and I have looked on here and with Google, but I do not seem to be able to get VS Code to behave in this fashion :(
I am wondering if any of the folks on here with more experience with VS code can advise if what I am looking to do is possible or do I just have to suck it up and use the integrated terminal/output panes at the bottom of the window?
Any advise would be very much appreciated.
I have tried in the "Configure Terminal Settings" to change from Integrated to External, but this has made no difference.
Powershell ISE terminal has the IntelliSense feature. Is it possible to get/enable the same IntelliSense feature in VSCode powershell terminal
Many thanks
The PowerShell extension(PSReadLine) for VSCode is still in pipeline for the next Enhancement, the teams are working on it should be released soon enough.
From what I read seems like a lot of work before they can get PSReadline to coexist with the PowerShell extension's language.
As per the comment from David Wilson from the discussion
"PSReadline is not supported in the integrated console at this time. A non-trivial amount of work is needed to make PowerShell Editor Services and PSReadline play nicely together so this could take some time.
Features this will enable:
1.Ctrl+Arrow keys, etc (keyboard navigation of the input line)
2.Syntax highlighting of input text
3.Multi-line text input (writing a function definition in the console across multiple lines)"
You can follow the discussion on
https://github.com/PowerShell/vscode-powershell/issues/535
I'm running Console2, which I believe is just an interface to windows cmd
I have a custom batch file that does most of my dirty work for me, but there are lot of commands in it now. Is there a way I can get a tap autocomplete working for it in the windows command prompt?
For example: my script is called rob.bat and it takes in a various number of arguments
It'd like to type rob set{Tab} and then have it cycle through
setup_envvars
setup_userprefs
setup_whateverothersetupscriptsIhave
Is there a way to do this?
Console2 has no special provisions for tab completion and instead relies on the program running within it to provide such features. Picture Console2 as little more than something that runs a console program hidden somewhere, regularly polls that hidden window for changes, and forwards all input to that window; this is, in essence, what's happening.
Note that Console2 does nothing special with cmd. You can run any shell within it. As for customizing tab completion, cmd offers nothing of that sort. You may be able to change this by installing clink, which has extension points for Lua code. Another option would be PowerShell, which has customizable tab completion out of the box, either by wrapping your program in a function that provides the necessary parameters, or by writing a custom TabExpansion or TabExpansion2 function.
Is it possible to save a form in VBA as .exe file and then run it.
No, not natively.
There are some ways to emulate an EXE:
Excel: 3rd party tool that claims to be able to compile an workbook to an EXE: DoneEx XCell Compiler. You can also create an automatic marco, Auto_Open, to run when the workbook is opened.
Access: Microsoft used to have a way of delivering an Access database as an executable (the name of the tool escapes me) so you could deploy your database to desktops that didn't have Access installed, but I don't think they offer this anymore. You could convert you MDB to an MDE and set the startup properties to hide the database window and menus and such to emulate an EXE, but your users will need to have Access installed.
Word: You can pass the /m switch to Word on startup with the name of a macro to run.
I think there is at least 2 way
move the code into visual basic 6 and compile it or use visual studio tool for office and see what you can do.
if these 2 solutions is a no no for you, then you are out of luck
No. VBA is an addon to applications to support "scripting" in the form of VB.
So unless your application supports a way to save the internal script as en external EXE, you are out of luck.
I think DoneEx still needs Excel installed, it just bootstraps something to the xls file, or bootstraps that to something and wraps it up as an exe???/..
as I think this does.
http://cpap.com.br/orlando/XLtoExeMore.asp
But at least the second one if free!
I have not tested on PC's with out office.
what is it you are trying to accomplish there may be a work around another way?
thanks
Ross
I'd like to script FlexBuilder so that I can run debug or profile without having to switch to FlexBuilder and manually clicking the button (or using the key combo). Is this possible without writing an extension?
To be more specific, this is exactly what I want to do: I want to create a TextMate command that talks to FlexBuilder and makes it run the debug target for the currently selected project. TextMate already has support for interacting with Xcode in this way, and it would be great to be able to do the same with FlexBuilder.
When compiling I use Ant and have full control over that from TextMate, what I want is to be able to launch the debugger and the profiler. The command line debugger is unusable and there is no other profiler available than the one in FlexBuilder.
Since FlexBuilder essentially is an extended version of Eclipse, any tools/scripts for doing the same in Eclipse should work for FlexBuilder aswell. I couldn't find any tools like this googling it, have you considered doing away with FlexBuilder completely, there are plenty of guides for using the mxmlc (or fcsh) compilers directly from your editor.
I do not know if there is a plugin like this for Eclipse however if not you can write one as it should be easy.
If the specific command that you want to call shows up in Windows/Preferences - General/Keys, you can create a plugin that takes commands from TextMate (I do not know what protocol TextMate uses, socket or something else) and executed the specific action that is associated with the command that also appears in preferences.