Visual Studio Code

Ξεκίνησε από alkisg, 10 Μαΐου 2020, 09:02:58 ΠΜ

« προηγούμενο - επόμενο »

alkisg

Για κάποιο λόγο δεν το είχα πάρει χαμπάρι, οπότε ας ενημερώσω κι εδώ για όσους χρησιμοποιούν και επαγγελματικά προγραμματιστικά περιβάλλοντα.

Πλέον το πιο διάσημο "ολοκληρωμένο προγραμματιστικό περιβάλλον" είναι το Visual Studio Code.

Το αξίζει. Είναι ανοικτού κώδικα, ελαφρύ, ο πυρήνας του αναπτύσσεται από τη Microsoft, αλλά για τις επεκτάσεις του που υποστηρίζουν ένα σωρό γλώσσες προγραμματισμού συνεισφέρουν πολλές ακόμη εταιρίες. Παίζει σε όλα τα γνωστά λειτουργικά (και .deb αποθετήριο για Linux) και μάλιστα το github θα το χρησιμοποιήσει και ως online IDE, αφού το UI του είναι γραμμένο σε HTML.

Έκανα λίγες γρήγορες δοκιμές με projects σε C, C++, Java, Javascript, HTML, Python, Shell, Markdown κλπ και αποφάσισα να μεταβώ σε αυτό και να μην χρησιμοποιώ πια τα Codeblocks, IntelliJ IDEA, PyCharm, Geany, gedit/pluma κλπ.

pgrontas

Όντως είναι εξαιρετικό - το χρησιμοποιώ εδώ και χρόνια προσωπικά, αλλά και στην Α Λυκείου όταν τους κάνω HTML.

Αξίζει να σημειωθεί μία λειτουργία του, την οποία έχω συνηθίσει τόσο που με εκνευρίζει που δεν υπάρχει παντού.
Κάθε φορά που πατάς την αριστερή παρένθεση, αγκύλη κλπ. σου βάζει αυτόματα και την δεξιά (και ο cursor πάει αυτόματα στη μέση).
Επίσης αν επιλέξεις ένα κείμενο και πατήσεις αριστερή παρένθεση πάλι μπαίνει αυτόματα και η δεξιά.

Μπορεί να φαίνεται μικρό, αλλά είναι ένας αυτοματισμός που βοηθάει απίστευτα.
Programs must be written for people to read, and only incidentally for machines to execute - Harold Abelson

dpa2006

Είναι πλέον πολύ καλό,
μεγάλη βελτίωση τα τελευταία χρόνια και έχει ανέβει ψηλά στις προτιμήσεις,όχι άδικα.

Σχετική λίστα,
http://pypl.github.io/IDE.html
Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

alkisg

Νομίζω σε αυτή τη λίστα έχουν απαντήσει κυρίως προγραμματιστές Python, ενώ η wikipedia αναφέρει μια άλλη δημοσκόπηση του stackoverflow όπου το vscode έχει 50.7% και τα άλλα πολύ λιγότερο...

Λίγο με το compile GNU C/C++ projects δεν είναι ακόμα πολύ αυτοματοποιημένο, αλλά αφού του βάλεις δυο αρχεία launch.json/tasks.json, παίζει κι εκεί μια χαρά.

bugman

Αυτό που κάνει το vs code με τις παρενθέσεις και τις αγκύλες και τα εισαγωγικά το έχω αντιγράψει στον διορθωτή της Μ2000. Το κάνει και σε γυμνό και με μαρκαρισμένα κείμενο. Επίσης δουλεύει με πολλαπλό undo και redo. Λειτουργεί και το shift enter για να βάλει αγκύλες με ενδιάμεση νέα γραμμή με μια επιπλέον εσοχή. Οι εσοχές μπορεί να είναι διαστήματα ή tab.

pgrontas

Παράθεση από: alkisg στις 10 Μαΐου 2020, 09:02:58 ΠΜ
μάλιστα το github θα το χρησιμοποιήσει και ως online IDE, αφού το UI του είναι γραμμένο σε HTML.

Σιγά σιγά γίνονται τα πρώτα βήματα: https://vscode.dev/
Και το ωραίο είναι ότι αν έχεις συνδεθεί με λογαριασμό Github ή Microsoft συγχρονίζει τα themes και κάποια από τα extensions σου στην Web εφαρμογή.
Programs must be written for people to read, and only incidentally for machines to execute - Harold Abelson

falexakos

Ουάου!
Ρε παιδιά, εγώ νόμιζα πως αυτό είναι μόνο ένας editor. "Κουμπώνουν" και μεταγλωττιστές επάνω; Έχει π.χ. Visual Basic;
Επίσης, πώς τό 'παθε η M$ κι "άνοιξε" προϊόν της;

alkisg

Η Microsoft έχει πάνω από δεκαετία που "είδε το φως" με τα καλά του open source και έχει αρχίσει να το αγκαλιάζει. Έχει φτιάξει δικιά της διανομή Linux, συνεισφέρει στην ανάπτυξη του Linux kernel, αγόρασε το github, δημοσίευσε πάνω από 4.5 χιλιάδες αποθετήρια ανοικτού κώδικα στο https://github.com/Microsoft και πάνω από 1.8 χιλιάδες αποθετήρια για ανοικτό documentation στο https://github.com/MicrosoftDocs κλπ. Ο edge είναι ανοικτού κώδικα, το νέο της τερματικό επίσης...

https://en.wikipedia.org/wiki/Microsoft_and_open_source

Για τα διάφορα extensions του vscode ρίξε μια ματιά στο https://marketplace.visualstudio.com/vscode, αν και ειδικά για Visual Basic δεν νομίζω να υπάρχει μεγάλη ανοικτή κοινότητα που να ασχολείται με αυτήν...

dpa2006

Χρόνια πολλά σε όλους
Η M$ έχει δώσει πολλά τουτόριαλ για VSCode για πολλές γλώσσες προγραμματισμού...
https://code.visualstudio.com/docs/languages/cpp


https://code.visualstudio.com/docs/python/python-tutorial


https://code.visualstudio.com/docs/nodejs/working-with-javascript


και άλλα, λίγο ψάξιμο θέλει...

@ Alkis ποια διανομή έχει η M$....?  ???


Εκτός αν εννοείς,
https://docs.microsoft.com/en-us/windows/wsl/install



Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

alkisg

Χρόνια πολλά και καλή χρονιά!

https://github.com/microsoft/CBL-Mariner
CBL-Mariner is an internal Linux distribution for Microsoft's cloud infrastructure and edge products and services.

dpa2006

Χρόνια πολλά καλή χρονιά με υγεία...!
Merci...!!!
Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

falexakos

Καλή χρονιά σε όλους.

Παράθεση[...]αγόρασε το github, δημοσίευσε πάνω από 4.5 χιλιάδες αποθετήρια ανοικτού κώδικα στο https://github.com/Microsoft
Χεεχ. Δε φαντάζομαι να τους χάλασε εκεί στη Microsoft ο τόσος κώδικας που οικειοποιήθηκαν (εδώ και καιρό) από το github. Ευτυχώς νομίζω πως υπέγραψαν ότι θα τον έχουν πάντα "ορθάνοιχτο".   :) Να δούμε όμως...

alkisg

Καλή χρονιά!

Ο κώδικας των projects που υπάρχουν στο github ανήκει στους developers τους και δεν μπορεί να πωληθεί ή να αγοραστεί από την εταιρία που έχει το github.

Π.χ. το https://github.com/ltsp/ltsp/ ανήκει στους https://github.com/ltsp/ltsp/graphs/contributors κατ' αναλογία με το πόσο συνεισέφερε ο καθένας.
Αν κάποιος πάει να το χρησιμοποιήσει με τρόπο αντίθετο στην GPLv3, παρανομεί και είναι για δικαστήρια.

Ή αντίστοιχα, το περιεχόμενο του Στεκιού δεν ανήκει σε μένα και δεν μπορώ να το πουλήσω σε εταιρίες κλπ. Είναι ιδιοκτησία όλων σας.

dpa2006

Παράθεση από: bugman στις 11 Μαΐου 2020, 05:49:57 ΜΜ
Αυτό που κάνει το vs code με τις παρενθέσεις και τις αγκύλες και τα εισαγωγικά το έχω αντιγράψει στον διορθωτή της Μ2000. Το κάνει και σε γυμνό και με μαρκαρισμένα κείμενο. Επίσης δουλεύει με πολλαπλό undo και redo. Λειτουργεί και το shift enter για να βάλει αγκύλες με ενδιάμεση νέα γραμμή με μια επιπλέον εσοχή. Οι εσοχές μπορεί να είναι διαστήματα ή tab.

Αυτό το κάνει (ίσως κάνουν) και άλλοι editors.
Π.χ. με την χρήση πρόσθετου ή χωρίς
Δεν είναι μοναδικό (χρήσιμο βέβαια) χαρακτηριστικό στο VS...
Π.χ. SublimeText.
Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

falexakos

Παράθεση
Π.χ. το https://github.com/ltsp/ltsp/ ανήκει στους https://github.com/ltsp/ltsp/graphs/contributors κατ' αναλογία με το πόσο συνεισέφερε ο καθένας.
Αν κάποιος πάει να το χρησιμοποιήσει με τρόπο αντίθετο στην GPLv3, παρανομεί και είναι για δικαστήρια.

Σύμφωνοι. Αλλά πως ξέρουμε ότι η Microsoft δεν ενσωματώνει κώδικα από εκεί σε δικά της έργα; Άλλωστε τα binaries δίνει μόνο.
Θα μου πεις, αυτό γινόταν και πριν, οπότε γιατί το αγόρασε το Github; Ίσως για να "κόψει" την παραγωγή GPL'ed source;
Ίδωμεν...

itt

Παράθεση από: falexakos στις 13 Ιαν 2022, 09:39:42 ΠΜ
Σύμφωνοι. Αλλά πως ξέρουμε ότι η Microsoft δεν ενσωματώνει κώδικα από εκεί σε δικά της έργα; Άλλωστε τα binaries δίνει μόνο.
Θα μου πεις, αυτό γινόταν και πριν, οπότε γιατί το αγόρασε το Github; Ίσως για να "κόψει" την παραγωγή GPL'ed source;
Ίδωμεν...

Αγόρασε το github, γιατί το business model τους πλέoν περιστρέφεται γύρω από το Azure, οπότε το να προσφέρεις integrated automation με το Azure στη μεγαλύτερη παγκοσμίως social και vcs πλατφόρμα που χρησιμοποιούν προγραμματιστές είναι πολύ καλή στρατηγική στο context αυτού του business model.




dpa2006

Παράθεση από: itt στις 16 Ιαν 2022, 01:23:05 ΜΜ
Αγόρασε το github, γιατί το business model τους πλέoν περιστρέφεται γύρω από το Azure, οπότε το να προσφέρεις integrated automation με το Azure στη μεγαλύτερη παγκοσμίως social και vcs πλατφόρμα που χρησιμοποιούν προγραμματιστές είναι πολύ καλή στρατηγική στο context αυτού του business model.


Ακριβώς...!
Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

falexakos


dpa2006

Παράθεση από: falexakos στις 19 Ιαν 2022, 11:20:35 ΠΜΧμμ. Πράγματι: https://azure.microsoft.com/en-us/products/github/#features
Καλόοο!

Δεν ξέρουμε τι ενσωματώνει η MS, αλλά μπορεί να απενεργοποιηθεί η Τηλεμετρία για παράδειγμα...
Βέβαια ο κώδικας είναι ανοιχτός αλλά τα Binary όχι γιατί ενσωματώνει και άλλα πράγματα...

How to Disable Telemetry in VSCode

Σε αυτήν την περίπτωση όποιος ενδιαφέρεται ας ρίξει μια ματιά στον 

https://vscodium.com/

VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's editor VS Code.
Screenshot


Why Does This Exist
Microsoft's 
vscode
 source code is open source (MIT-licensed), but the product available for download (Visual Studio Code) is licensed under this not-FLOSS license and contains telemetry/tracking. According to this comment from a Visual Studio Code maintainer:
ΠαράθεσηWhen we [Microsoft] build Visual Studio Code, we do exactly this. We clone the vscode repository, we lay down a customized product.json that has Microsoft specific functionality (telemetry, gallery, logo, etc.), and then produce a build that we release under our license.
When you clone and build from the vscode repo, none of these endpoints are configured in the default product.json. Therefore, you generate a "clean" build, without the Microsoft customizations, which is by default licensed under the MIT license
The VSCodium project exists so that you don't have to download+build from source. This project includes special build scripts that clone Microsoft's vscode repo, run the build commands, and upload the resulting binaries for you to GitHub releasesThese binaries are licensed under the MIT license. Telemetry is disabled.
If you want to build from source yourself, head over to Microsoft's vscode repo and follow their instructions. VSCodium exists to make it easier to get the latest version of MIT-licensed VS Code.


Για όποιον δεν θέλει να "μπλέξει" με Package Managers στα Windows...  :)

https://github.com/VSCodium/vscodium/releases

Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

dpa2006

Καλησπέρα επειδή σε κάποιους έχουν δημιουργηθεί θέματα με τα extensions του VSCodium
δείτε το εξής:

https://github.com/VSCodium/vscodium/blob/master/DOCS.md#extensions-marketplace

και το

https://open-vsx.org/

Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

za√‘ag

Παράθεση από: falexakos στις 21 Δεκ 2021, 09:11:10 ΠΜΟυάου!
Ρε παιδιά, εγώ νόμιζα πως αυτό είναι μόνο ένας editor. "Κουμπώνουν" και μεταγλωττιστές επάνω; Έχει π.χ. Visual Basic;
Επίσης, πώς τό 'παθε η M$ κι "άνοιξε" προϊόν της;

Υπάρχει τελικά τρόπος να δεις ένα VB έργο με τις φόρμες (forms) ;

«Δεν υπάρχει λόγος να θέλει κανείς έναν υπολογιστή στο σπίτι του»--Ken Olson, πρ. της DEC, 1977
«Τα 640KB RAM επαρκούν για να τρέξει κάθε πρόγραμμα»--Bill Gates
Δείτε κι άλλες ιστορικές ατάκες  εδώ

dpa2006

Κάτι σαν το παρακάτω...?
https://marketplace.visualstudio.com/items?itemName=fernandoescolar.vscode-solution-explorer

Ρίξε μια ματιά εδώ:
https://www.c-sharpcorner.com/article/running-a-visual-studio-2019-solution-in-visual-studio-code/

ΠαράθεσηIn this article, we looked at a simple example of running a solution created in Visual Studio 2019 community edition in Visual Studio Code. This was a simple console application and there would certainly be more configuration required for more complex applications and for debugging. Please note that the new versions of Visual Studio Code do support building and debugging projects for the .NET framework but this support is very limited.

 

Computer science (abbreviated CS or CompSci) is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical processes (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded in bits and bytes in a computer memory or transcribed engines and protein structures in a human cell.source:http://en.wikipedia.org/wiki/Computer_science

gerana

Μπορώ να το εγκαταστήσω σε LTSP 22.04  και πως;

alkisg

Ναι βέβαια, κατέβασε το .deb από εδώ και κάν' του διπλό κλικ:
https://code.visualstudio.com/download