Sublime text editor linux

Installation¶

Make sure to read the conditions for use on the official site. Sublime Text is not free.

The process of installing Sublime Text is different for each platform.

32 bits or 64 bits?¶

OS X¶

You can ignore this section: there is only one version of Sublime Text for OS X.

Windows¶

You should be able to run the 64-bit version if you are using a modern version Windows. If you are having trouble running the 64-bit version, try the 32-bit version.

Linux¶

Run this command in your terminal to check your operating system’s type:

Windows¶

Portable or Not Portable?¶

Sublime Text comes in two flavors for Windows: normal, and portable. Most users should be better served by a normal installation. Use the portable version only if you know you need it.

Normal installations separate data between two folders: the installation folder proper, and the data directory (user-specific directory for data; explained later in this guide). Normal installations also integrate Sublime Text with File Explorer.

Portable installations keep all files needed by Sublime Text in a single folder. This folder can be moved around and the editor will still work.

How to Install the Normal Version of Sublime Text¶

How to Install the Portable Version of Sublime Text¶

You will find the sublime_text.exe executable inside that folder.

OS X¶

  1. Download .dmg file
  2. Open .dmg file
  3. Drag the Sublime Text 3 bundle into the Applications folder

To create a symbolic link to use at the command line issue the following command at the terminal:

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Linux¶

You can download the package and uncompress it manually. Alternatively, you can use the command line.

Ubuntu¶

Other Linux Distributions¶

Now we should move the uncompressed files to an appropriate location.

sudo mv Sublime\ Text\ 3 /opt/

Lastly, we create a symbolic link to use at the command line.

sudo ln -s /opt/Sublime\ Text\ 3/sublime_text /usr/bin/sublime

In Ubuntu, if you also want to add Sublime Text to the Unity luncher, read on.

First we need to create a new file.

sudo sublime /usr/share/applications/sublime.desktop

Then copy the following into it.

[Desktop Entry] Version=3.0 Name=Sublime Text 3 # Only KDE 4 seems to use GenericName, so we reuse the KDE strings. # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. GenericName=Text Editor Exec=sublime Terminal=false Icon=/opt/Sublime Text 3/Icon/48x48/sublime_text.png Type=Application Categories=TextEditor;IDE;Development X-Ayatana-Desktop-Shortcuts=NewWindow [NewWindow Shortcut Group] Name=New Window Exec=sublime -n TargetEnvironment=Unity

If you’ve registered your copy of Sublime Text, but every time you open it you’re asked to enter your license, you should try running this command.

sudo chown -R username:username /home/username/.config /sublime-text-3

Just replace username with your account’s username. This should fix the permission error in the case that you opened up Sublime Text as root when you first entered the license.

Читайте также:  Chmod in linux ubuntu

Release Channels¶

At the time of this writing, two major versions of Sublime Text exist: Sublime Text 2 and Sublime Text 3. Generally speaking, Sublime Text 3 is the better choice. Even though it’s technically in beta, it’s as stable as Sublime Text 2 and has more features.

Use Sublime Text 2 only if you have found issues running Sublime Text 3 or you depend on any package not available for Sublime Text 3.

Getting Sublime Text 3¶

Sublime Text 3 has two release channels:

Beta releases are better tested and more reliable for everyday use than development builds. The majority of users should only use beta releases.

The dev channel is unstable: dev builds may contain bugs and not work reliably. Dev builds are updated more often than stable releases.

Dev builds are only available to registered users.

Getting Sublime Text 2¶

If you have chosen to use Sublime Text 2, you can download it here.

© Copyright. . Sublime Text Unofficial Documentation. All Rights Reserved. Sublime Text

Источник

How to Install and Use Sublime Text 4 in Linux

If you are a developer or a developer in the making, then you are well aware that the developing world cannot be complete without a renowned source code editor.

Sublime Text 4 is a renowned candidate in the developer’s space. It is a fast and powerful editor for writing and editing developer code.

Python and C++ programming languages are responsible for the existence of this cross-platform editor, which makes it possible to code your projects in any language as it is freely available for download and installation.

Sublime Text Features

With Sublime Text 4 being the latest version released to the developer’s community, you will not be limited to prime features like selection of multiple code lines, syntax highlighting, quick shortcuts, and autocompletion.

As for Sublime Text 4 improved features, expect to explore:

  • Updated Python API (Currently 3.8)
  • A UI with New Tab Styles
  • Typescript and JSX Support
  • ARM64 Linux Support
  • Smart Autocompletion
  • Improved Syntax Highlighting
  • GPU Acceleration
  • Multi-tab Selection

Installing Sublime Text Editor in Linux

First, update your Linux system for optimal performance and security patches fixes.

$ sudo dnf update && sudo dnf upgrade -y [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux] $ sudo apt update && sudo apt upgrade -y [On Debian, Ubuntu and Mint] $ sudo zypper refresh && sudo zypper update -y [On OpenSUSE] $ sudo pacman -Syu [On Arch Linux]

Next, download Sublime Text 4 from the official website or use the following wget command to download it directly in the terminal.

$ wget https://download.sublimetext.com/sublime_text_build_4126_x64.tar.xz

After downloading, decompress and install the Sublime Text 4 as shown.

$ tar xf sublime_text_build_4126_x64.tar.xz $ cd sublime_text

The sublime_text directory already contains a complete build for the Sublime Text 4 editor making it unnecessary to compile anything. Therefore, we only need to run/launch the highlighted file to start exploring what Sublime Text 4 has to offer.

Читайте также:  Kali linux windows 10 password

The above command should comfortably launch the Sublime Text 4 application.

Start Sublime Text Editor

Using Sublime Text 4 Code Editor on Linux

We are now going to explore various ways of familiarizing/using this sophisticated text editor for your projects’ code, markup, and prose. The usage of Sublime Text 4 basically depends on how you interact with its various UI menu tabs.

File Tab

This tab is useful for operations like creating, opening, saving, and closing your project files.

Sublime Text File Tab

Edit Tab

Your various project edits can be done here.

Sublime Text Edit Tab

Selection Tab

Here, you will learn various cool ways of expanding your project code.

Sublime Text Selection Tab

Find Tab

Need to find a specific text or line of code in an open project file? This is the tab to use.

Sublime Text Find Tab

View Tab

This tab helps customize the UI of Sublime Text 4 to your preference.

Sublime Text View Tab

GoTo Tab

Helps with quick navigation of long project files.

Sublime Text GoTo Tab

Tools Tab

From this tab, you can perform actions like building your complete code to run applications based on the source programming language.

Sublime Text Tools Tab

Project Tab

Here, you can be able to open and navigate between existing projects.

Sublime Text Project Tab

Preferences Tab

This tab helps you apply various settings to your project layout.

Sublime Text Preferences Tab

Help Tab

If you are stuck or have challenges with Sublime Text 4, you can reference menu sections like Documentation from the Help Tab.

Sublime Text Help Tab

There is a lot to explore, do check the official documentation of Sublime Text 4.

Источник

Installation

(opens new window) on the official site. Sublime Text is not free. However, you may evaluate it without a license.

Download links for all supported platforms can be found on the Download

The process of installing Sublime Text is different for each platform.

# 32 or 64 bits?

64 bit versions should be preferred. As of Sublime Text 4 there are no (officially supported) 32-bit versions any more. Only use a 32-bit version if you are having problems with the 64-bit version or you are running a 32-bit operating system. Note that some features, such as Git Integration

(opens new window) are only available in the 64-bit version.

# macOS

There is only one version of Sublime Text for macOS.

# Windows

You should be able to run the 64-bit version if you are using a modern and supported version Windows (read: anything older than Windows XP).

# Linux

Run the following command in your terminal to check your operating system’s type. x86_64 means you are on a 64-bit system.

# Portable or Not Portable?

Sublime Text comes in two flavors (for Windows specifically):

Most users should be better served by a normal installation. Use the portable version only if you know you need it.

Читайте также:  Mariadb gui client linux

Normal installations separate data between two folders: the installation folder proper, and the data directory (user-specific directory for data; explained later in this guide). Normal installations also integrate Sublime Text with the File Explorer.

Portable installations keep all files needed by Sublime Text in a single folder. This folder can be moved around and the editor will still work.

# How to Install

# macOS and Windows

# Linux

The recommended way is to use the official Linux repositories

(opens new window) for commonly used Linux distributions and follow the corresponding steps to install Sublime Text using your system’s package manager.

If there is no repository for your system, you can look for a Sublime Text entry on your distro’s repository.

# Manual Installation

The following sequence of Bash commands can be used to install Sublime Text manually. Replace 3211 with the latest build available (or any older build number).

cd ~ wget https://download.sublimetext.com/sublime_text_3_build_3211_x64.tar.bz2 tar vxjf sublime_text_3_build_*_x64.tar.bz2 # Move the uncompressed files to an appropriate location. sudo mv sublime_text_3 /opt/sublime_text # Create a symbolic link to use at the command line. sudo ln -s /opt/sublime_text_3/sublime_text /usr/local/bin/subl # Create a symbolic link for the desktop entry. sudo ln -s /opt/sublime_text_3/sublime_text.desktop /usr/share/applications/sublime_text.desktop 

# How to Install the Portable Version

The portable version is activated whenever a Data/ folder exists in the installation folder, i.e. the folder you extracted the portable archive to.

# Windows

  1. Download the compressed archive with the portable version.
  2. Unzip it to a folder of your choice.

You will find the sublime_text.exe executable inside that folder.

# Linux

The steps are similar to the manual installation steps above.

  1. Download the tarball.
  2. Unzip it to a folder of your choice.
  3. Create a Data/ folder inside that folder.

You will find the sublime_text executable inside that folder.

# macOS

  1. Download .dmg file.
  2. Open .dmg file.
  3. Drag the Sublime Text 3 bundle into the Applications folder

To create a symbolic link to use at the command line, issue the following command at the terminal:

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl 

# Release Channels

Sublime Text currently has two release channels:

Stable releases are better tested and more reliable for everyday use. The majority of users should only use stable releases.

The dev channel is more unstable. Dev builds may contain bugs and not work reliably. They are updated more often than beta releases. Dev builds are only available to registered users.

# Older Versions

In the event you want to downgrade your Sublime Text, you can access binaries for any previously released version by replacing the build number in the download URL. For example, to retrieve the Windows release for Sublime Text 3.0, grab the latest download URL provided and replace it with the one from the Sublime Text 3.0 release.

Although discouraged, Sublime Text 2 can be found on its old download page

(opens new window) . Because it is unsupported, you will need to figure out on your own how to install it.

Источник

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