Text editor linux windows

Alternative to basic text editors in ubuntu wsl

Currently I have a ubuntu terminal that I downloaded from the MS store. I would like to be able to edit code without using nano/vim/emacs. Is this possible? Can I use an external editor like visual studio or something of the like?

I added a WSL tag to your question. If indeed you are using Ubuntu via WSL, please edit your question’s title to make that clear.

4 Answers 4

in WSL, set your default editor to WSL-OPEN:

This will automatically translate the file to your default windows app for the associated EXT.

I had this problem and MS Visual Studio Code was excellent at solving this issue. Install it, and run «code .» and it will open with it. More detailed instructions below.

You are asking about code editors under Ubuntu/WSL.

You may want text apps or graphical apps. And you need to specify the language your code uses.

If Eclipse works for you, this may be useful

Otherwise, this may be helpful

  1. Download visual studio code for windows
  2. In the ubuntu terminal type «code «.
    Example:
code ./codes_folder code ./codes_folder/1.c 

You must log in to answer this question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

7 Best Multi-platform Text Editors

Technology has become a key part of our lives, as everything is gradually becoming digitized, and our lives are being enveloped by it. Seeing how technology has grown to have such a major role in our lives, it comes off as no surprise as to the popularity that the field of Computer Science is receiving. Today’s demand for developers and technical experts has exponentially increased in the market and shows no signs of slowing down.

Computer Science itself has seen a large progression in its content as numerous subfields are being introduced. However, one aspect that has always been in the limelight is programming, which sits at the crux of stuff like game development, animations, mobile and web applications, social networking sites, etc.

Читайте также:  Linux cpu usage monitor

Hence, our discussion topic in this article is to look at the best multi-platform text editors currently available.

VS Code

VS Code is one of the most popular text editors these days. Although it is a Microsoft product, it is open-source and is easily available for all major platforms such as Windows, Linux, Mac OS, etc. VS Code is unlike other text editors. It offers much more than what a traditional text editor does and has some of the best features, some even rivaling those that come with the Integrated Development Environment (IDEs). It is extremely stable and fast and has a very customizable user interface that users can easily configure and tweak according to their interests.

Features such as auto-completion, color highlighting, snippets, code refactoring, and syntax highlighting are clear indicators of the power that sits behind the hood of the VS Code. Moreover, it is highly versatile and has several keyboard shortcuts, themes as well as a variety of extensions.

VS Code also comes along with a built-in command-line interface, a debugger, and integration with Git, which allows users to easily perform tasks such as making commits, cloning repositories, and pushing the updated data to the GitHub repositories.

Sublime Text

Sublime Text is another excellent choice for a Text Editor. It is a simple, multi-platform editor that, although it isn’t free, still has one of the largest communities in the industry. It is mainly known for its high-speed performance and stability and is a perfect fit for users who prefer performance and simplicity over other extensive features. It has a pretty slick user interface that is extremely flexible and customizable. You can customize everything about Sublime Text – from the color scheme to the font size, the key bindings to the syntax highlighting rules, and so on.

In addition to this, Sublime Text is bundled with a wide set of features such as having support for programming languages and file types in the two-digit figure range, multiple cursors as well as an innovative command palette that allows for easy navigation and an efficient searching system. It also has a package manager, which has a large number of packages that offer even more functionality to the already powerful editor.

Atom

Atom is an Electron-based free and open-source code editor that is available for all major platforms such as Windows, Linux, and Mac OS. Similar to VS Code and Sublime Text, it has a package manager having support for thousands of packages, which offer more extensibility and functionality to Atom. Furthermore, it is highly customizable and comes with features such as auto-completion, powerful searching feature, and embedded Git.

Читайте также:  Linux установить локаль all

Vim

Vim is one of the oldest and one of the most popular text editors out there. Although it is more popular among Linux users, it is also available on Windows and macOS and is a good choice to have if you want fast performance and simplicity. It is an extremely powerful editor, with most of its power lying in it being highly customizable and extensible. It does this by offering users an abundance of plugins that allow them to easily tweak and configure it. Vim also has some amazing features such as Undo Tree, a powerful search and replace the system, and multiple window editing, all of which are extremely useful for programmers.

Emacs

Similar to VIM, Emacs is another old but highly popular text editor that is not only multi-platform but free and open-source as well. Emacs is often compared to an operating system and with good reason, as it is a fully-fledged machine, having support for a command line, an email client as well as the Git version control. It is also extremely customizable and can easily be molded in any form that suits your taste. In addition to this, it also has a large collection of plugins, each of which offers numerous features akin to those you can find in integrated development environments. Emacs also provides users with high-level built-in commands that allow users to perform multiple tasks like moving cursors or manipulating text.

Geany

Geany is a small and lightweight text editor that users of Windows, macOS, and Linux can use and run their code. It has support for a large number of programming languages and is integrated with several excellent features such as syntax highlighting, code folding, auto-completion, and code navigation. It has a simple and easy to use interface that is extremely user-friendly and resembles closely that of Notepad++. It has some basic IDE features as well, where it offers users a build system for compilation and execution of code.

Bluefish

Bluefish is a powerful multi-platform text editor that offers support for many programming as well as markup languages. It is extremely lightweight and has a very easy to use and user-friendly user interface. It has a variety of features integrated inside of it, the most notable ones being auto-completion, syntax highlighting, code folding, code navigation, and spell checker. Having been designed to suit the needs of both web developers as well as programmers, it has dialogs available for creating HTML5, CSS, tables, forms, and so on.

Читайте также:  Linux show path to directory

Which are the Best Multi-platform Text Editors?

There are several great multi-platform options available for text editors these days, each of which offers excellent features that match up to the standards of IDEs. All seven mentioned above are among the most popular and widely used alternatives, each providing users with exceptional features. All in all, any choice from among the above seven would be worth considering.

Источник

linux text editor for windows

can somebody recommend a good Linux text editor for Windows (if it exists), I wrote scripts for C-Shell using txt editor of windows but I have problem, it doesn’t run because windows is not UNIX, what can I do? I don’t want to install linux for a few scripts, I do testing of my scripts via unix server (this server is not mine), thanks in advance, also I treed dos2unix command , also doesn’t work

What happens when you run dos2unix ? Error message? What happens when you run a script that’s been processed by dos2unix ? If you’re trying to run your script in Windows cmd.exe , then you’re right «Windows is not Unix». You will need to install Cygwin as Henno suggests or install Linux, or get access to a Linux or Unix system. And if you can, use any other shell besides csh or tcsh.

It sounds like your problem is that you aren’t able to run the scripts. The editor you’re using won’t matter. You can use Windows Notepad or Notepad++ or any other. What you need to find is a c-shell which runs under Windows for testing.

5 Answers 5

‘vim’ has a windows port over there. and you can save files with unix-lineending (among a lot of other things).

I like using notepad++. It has an EOL (end of line) converter under Edit. EOL (details).

You could try and install Cygwin, this will give you a relatively complete Linux environment within Windows. You can configure it to install just what you need (like a shell and a few utilities, and vi or emacs), and go from there.

What does the file look look when you look at it in a plaint text editor such as notepad?

If it looks sensible as a text file in Windows, then you could try using the Windows (command line) version of dos2unix, although I would be surprised if the dos2unix program had a problem.

Look at it again to see that only the line breaks have changed.

What happens when you look at the file on the server? Does it look sensible?

Are you sure that the script works? (Have you remembered to make the script executable?)

Источник

Оцените статью
Adblock
detector