oleg-shilo / cs-script-sublime Goto Github PK
View Code? Open in Web Editor NEWSublime Text 3 plugin for CS-Script
License: MIT License
Sublime Text 3 plugin for CS-Script
License: MIT License
I tried the Sublime plugin today, very neat! I used to use Visual Studio so far, which is great but just a bit cumbersome, takes a while to open while Sublime is very snappy, ideal for scripting.
I've taken the habit of using .csx extension though (I never succeeded in installing the proper shell context menus, my CS-config doesn't have the proper tab, plus anyway I prefer avoiding the confusion between scripts and regular C# files, this way I know I'm double-clicking something that's executable).
Anyway, the Sublime plugin doesn't seem to support .csx extensions, the "execute" entry in the context menu is greyed out. I do have color highlighting though :) !
Triggered by oleg-shilo/cs-script#121
Some other plugins may also compete for over-gutter tooltips so configurable setting can be a good compromise.
Although I changed the path of cscs.exe and mono it's still not working. No feature of the cs-script works and yes, I followed the instructions for Mac users.
Sublime freezes for a few seconds at startup when CS-Script is installed. Looks like this is caused by loading syntaxer.exe at startup but I am not 100% sure. Sublime version is 3143. Cs-Script version 1.2.6.
Apologies for posting this in the Sublime repo, but I couldn't find your repo for the "CS-Script Tools" VS extension.
So I'm using .csx extension, because of the ease of just double-clicking in explorer, and right-clicking for more, eg edit/debug in VS when Sublime doesn't cut it.
(I spend the rest of my non-script life in C# as well so having that context menu for regular .cs files is kind of awkward.)
2 issues:
Alternatively... could it be possible to use a sub-extension, like myscript.x.cs ? Double-clicking the file in the explorer probably wouldn't be able to differentiate past the last extension, but I think the context menu thing is from another project of yours, would that work?
Hey, so this is an odd one, upon save my carefully-formatted script get weirdfully-reindented... with 7 spaces for a tab. Wut? I heard of 4, 8, or even 2, but 7 is new :)
It took me a while to figure out (it actually also happens in non-script .cs files - I use .csx extension for scripts, thanks for the fix btw), but I can consistently reproduce: ctrl+shift+p: disable package CS-Script, save is OK, re-enable it: indent it all borked.
Expected: don't lint on save (or make it optional, off by default preferably), and if you DO lint on save, then respect Sublime's settings in the bottom-right corner (mine are "use tabs" and "tab size 4").
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.