GithubHelp home page GithubHelp logo

cs-script-sublime's People

Contributors

lbs-contributor avatar oleg-shilo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mikeshroomz

cs-script-sublime's Issues

support for .csx extension?

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 :) !

CS-Script Hangs Sublime Text for a Few Seconds

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.

[Visual Studio extension] support for .csx

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:

  • the "Open Script" dialog in the tool doesn't list .csx files (although typing their name by hand still works fine)
  • once the .csx file is open, editing is kinda limited: highlighting only half-works (some identifiers are the right color, others aren't), and intellisense doesn't work. I realize this might be out of your hands (I use R#, to make matters worse), but in case it's only a matter of associating the .csx extension to the proper file type then that'd be great.

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?

CS-Script plugin reindents the file on save

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").

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.